home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 15.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 73 74 65 76 65 40 61 |piled by| steve@a|
|00000020| 6c 74 61 69 72 2e 78 65 | 6d 61 63 73 2e 6f 72 67 |ltair.xe|macs.org|
|00000030| 20 6f 6e 20 54 68 75 20 | 4e 6f 76 20 32 30 20 31 | on Thu |Nov 20 1|
|00000040| 37 3a 34 30 3a 33 38 20 | 31 39 39 37 0a 3b 3b 3b |7:40:38 |1997.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 78 65 6d 61 63 73 2f | 32 30 2e 33 2f 78 65 6d |/xemacs/|20.3/xem|
|00000070| 61 63 73 2d 32 30 2e 33 | 2f 6c 69 73 70 2f 6d 75 |acs-20.3|/lisp/mu|
|00000080| 6c 65 2f 6d 75 6c 65 2d | 66 69 6c 65 73 2e 65 6c |le/mule-|files.el|
|00000090| 0a 3b 3b 3b 20 65 6d 61 | 63 73 20 76 65 72 73 69 |.;;; ema|cs versi|
|000000a0| 6f 6e 20 32 30 2e 33 20 | 22 56 61 74 69 63 61 6e |on 20.3 |"Vatican|
|000000b0| 20 43 69 74 79 22 20 58 | 45 6d 61 63 73 20 20 4c | City" X|Emacs L|
|000000c0| 75 63 69 64 2e 0a 3b 3b | 3b 20 62 79 74 65 63 6f |ucid..;;|; byteco|
|000000d0| 6d 70 20 76 65 72 73 69 | 6f 6e 20 32 2e 32 35 20 |mp versi|on 2.25 |
|000000e0| 58 45 6d 61 63 73 3b 20 | 32 32 2d 4d 61 72 2d 39 |XEmacs; |22-Mar-9|
|000000f0| 36 2e 0a 3b 3b 3b 20 6f | 70 74 69 6d 69 7a 61 74 |6..;;; o|ptimizat|
|00000100| 69 6f 6e 20 69 73 20 6f | 6e 2e 0a 3b 3b 3b 20 74 |ion is o|n..;;; t|
|00000110| 68 69 73 20 66 69 6c 65 | 20 75 73 65 73 20 6f 70 |his file| uses op|
|00000120| 63 6f 64 65 73 20 77 68 | 69 63 68 20 64 6f 20 6e |codes wh|ich do n|
|00000130| 6f 74 20 65 78 69 73 74 | 20 69 6e 20 45 6d 61 63 |ot exist| in Emac|
|00000140| 73 20 31 39 2e 0a 0a 28 | 69 66 20 28 61 6e 64 20 |s 19...(|if (and |
|00000150| 28 62 6f 75 6e 64 70 20 | 27 65 6d 61 63 73 2d 76 |(boundp |'emacs-v|
|00000160| 65 72 73 69 6f 6e 29 0a | 09 20 28 6f 72 20 28 61 |ersion).|. (or (a|
|00000170| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 70 6f 63 |nd (boun|dp 'epoc|
|00000180| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 20 65 70 6f 63 |h::versi|on) epoc|
|00000190| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 0a 09 20 20 20 |h::versi|on).. |
|000001a0| 20 20 28 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 | (strin|g-lessp |
|000001b0| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 22 32 |emacs-ve|rsion "2|
|000001c0| 30 22 29 29 29 0a 20 20 | 20 20 28 65 72 72 6f 72 |0"))). | (error|
|000001d0| 20 22 60 6d 75 6c 65 2d | 66 69 6c 65 73 2e 65 6c | "`mule-|files.el|
|000001e0| 27 20 77 61 73 20 63 6f | 6d 70 69 6c 65 64 20 66 |' was co|mpiled f|
|000001f0| 6f 72 20 45 6d 61 63 73 | 20 32 30 22 29 29 0a 0a |or Emacs| 20"))..|
|00000200| 28 6f 72 20 28 62 6f 75 | 6e 64 70 20 27 63 75 72 |(or (bou|ndp 'cur|
|00000210| 72 65 6e 74 2d 6c 6f 61 | 64 2d 6c 69 73 74 29 20 |rent-loa|d-list) |
|00000220| 28 73 65 74 71 20 63 75 | 72 72 65 6e 74 2d 6c 6f |(setq cu|rrent-lo|
|00000230| 61 64 2d 6c 69 73 74 20 | 6e 69 6c 29 29 0a 0a 0a |ad-list |nil))...|
|00000240| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 5c |(byte-co|de "...\|
|00000250| 22 88 c3 c1 c4 c5 23 88 | c6 c1 1e 07 1e 08 c9 0e |".....#.|........|
|00000260| 08 21 ad 85 c9 0e 07 21 | 3f c9 0e 08 21 ad 83 0e |.!.....!|?...!...|
|00000270| 08 4a 1e 5c 6e 1e 0b cc | 0e 08 0e 07 5c 22 88 cd |.J.\n...|....\"..|
|00000280| 0e 08 0e 07 5c 22 88 0e | 0b ab 86 0e 07 0e 5c 6e |....\"..|......\n|
|00000290| 4c 88 2c ce cf 1e 07 1e | 08 c9 0e 08 21 ad 85 c9 |L.,.....|....!...|
|000002a0| 0e 07 21 3f c9 0e 08 21 | ad 83 0e 08 4a 1e 5c 6e |..!?...!|....J.\n|
|000002b0| 1e 0b cc 0e 08 0e 07 5c | 22 88 cd 0e 08 0e 07 5c |.......\|"......\|
|000002c0| 22 88 0e 0b ab 86 0e 07 | 0e 5c 6e 4c 88 2c c0 87 |".......|.\nL.,..|
|000002d0| 22 20 5b 73 65 74 2d 64 | 65 66 61 75 6c 74 20 62 |" [set-d|efault b|
|000002e0| 75 66 66 65 72 2d 66 69 | 6c 65 2d 63 6f 64 69 6e |uffer-fi|le-codin|
|000002f0| 67 2d 73 79 73 74 65 6d | 20 69 73 6f 2d 32 30 32 |g-system| iso-202|
|00000300| 32 2d 38 20 70 75 74 20 | 70 65 72 6d 61 6e 65 6e |2-8 put |permanen|
|00000310| 74 2d 6c 6f 63 61 6c 20 | 74 20 66 69 6c 65 2d 63 |t-local |t file-c|
|00000320| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 20 6e 65 77 |oding-sy|stem new|
|00000330| 76 61 72 20 6f 6c 64 76 | 61 72 20 62 6f 75 6e 64 |var oldv|ar bound|
|00000340| 70 20 76 61 6c 75 65 20 | 6e 65 65 64 73 2d 73 65 |p value |needs-se|
|00000350| 74 74 69 6e 67 20 64 65 | 66 76 61 72 61 6c 69 61 |tting de|fvaralia|
|00000360| 73 20 6d 61 6b 65 2d 6f | 62 73 6f 6c 65 74 65 2d |s make-o|bsolete-|
|00000370| 76 61 72 69 61 62 6c 65 | 20 6f 76 65 72 72 69 64 |variable| overrid|
|00000380| 69 6e 67 2d 66 69 6c 65 | 2d 63 6f 64 69 6e 67 2d |ing-file|-coding-|
|00000390| 73 79 73 74 65 6d 20 63 | 6f 64 69 6e 67 2d 73 79 |system c|oding-sy|
|000003a0| 73 74 65 6d 2d 66 6f 72 | 2d 72 65 61 64 5d 20 34 |stem-for|-read] 4|
|000003b0| 29 0a 23 40 34 30 35 20 | 43 6f 64 69 6e 67 20 73 |).#@405 |Coding s|
|000003c0| 79 73 74 65 6d 20 75 73 | 65 64 20 77 68 65 6e 20 |ystem us|ed when |
|000003d0| 72 65 61 64 69 6e 67 20 | 61 20 66 69 6c 65 2e 0a |reading |a file..|
|000003e0| 54 68 69 73 20 70 72 6f | 76 69 64 65 73 20 63 6f |This pro|vides co|
|000003f0| 61 72 73 65 2d 67 72 61 | 69 6e 65 64 20 63 6f 6e |arse-gra|ined con|
|00000400| 74 72 6f 6c 3b 20 66 6f | 72 20 66 69 6e 65 72 2d |trol; fo|r finer-|
|00000410| 67 72 61 69 6e 65 64 20 | 63 6f 6e 74 72 6f 6c 2c |grained |control,|
|00000420| 20 75 73 65 0a 60 66 69 | 6c 65 2d 63 6f 64 69 6e | use.`fi|le-codin|
|00000430| 67 2d 73 79 73 74 65 6d | 2d 61 6c 69 73 74 27 2e |g-system|-alist'.|
|00000440| 20 20 46 72 6f 6d 20 61 | 20 4c 69 73 70 20 70 72 | From a| Lisp pr|
|00000450| 6f 67 72 61 6d 2c 20 69 | 66 20 79 6f 75 20 77 69 |ogram, i|f you wi|
|00000460| 73 68 20 74 6f 0a 75 6e | 69 6c 61 74 65 72 61 6c |sh to.un|ilateral|
|00000470| 6c 79 20 73 70 65 63 69 | 66 79 20 74 68 65 20 63 |ly speci|fy the c|
|00000480| 6f 64 69 6e 67 20 73 79 | 73 74 65 6d 20 75 73 65 |oding sy|stem use|
|00000490| 64 20 66 6f 72 20 6f 6e | 65 20 70 61 72 74 69 63 |d for on|e partic|
|000004a0| 75 6c 61 72 0a 6f 70 65 | 72 61 74 69 6f 6e 2c 20 |ular.ope|ration, |
|000004b0| 79 6f 75 20 73 68 6f 75 | 6c 64 20 62 69 6e 64 20 |you shou|ld bind |
|000004c0| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 60 63 6f |the vari|able `co|
|000004d0| 64 69 6e 67 2d 73 79 73 | 74 65 6d 2d 66 6f 72 2d |ding-sys|tem-for-|
|000004e0| 72 65 61 64 27 0a 72 61 | 74 68 65 72 20 74 68 61 |read'.ra|ther tha|
|000004f0| 6e 20 73 65 74 74 69 6e | 67 20 74 68 69 73 20 76 |n settin|g this v|
|00000500| 61 72 69 61 62 6c 65 2c | 20 77 68 69 63 68 20 69 |ariable,| which i|
|00000510| 73 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 62 65 |s intend|ed to be|
|00000520| 20 75 73 65 64 20 66 6f | 72 0a 67 6c 6f 62 61 6c | used fo|r.global|
|00000530| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 73 70 65 | environ|ment spe|
|00000540| 63 69 66 69 63 61 74 69 | 6f 6e 2e 1f 0a 28 64 65 |cificati|on...(de|
|00000550| 66 76 61 72 20 62 75 66 | 66 65 72 2d 66 69 6c 65 |fvar buf|fer-file|
|00000560| 2d 63 6f 64 69 6e 67 2d | 73 79 73 74 65 6d 2d 66 |-coding-|system-f|
|00000570| 6f 72 2d 72 65 61 64 20 | 27 75 6e 64 65 63 69 64 |or-read |'undecid|
|00000580| 65 64 20 28 23 24 20 2e | 20 39 35 32 29 29 0a 28 |ed (#$ .| 952)).(|
|00000590| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 1a 1b c4 |byte-cod|e ".....|
|000005a0| 0b 21 ad 84 c4 5c 6e 21 | 3f c4 0b 21 ad 82 0b 4a |.!...\n!|?..!...J|
|000005b0| 1d 1e 06 c7 0b 5c 6e 5c | 22 88 c8 0b 5c 6e 5c 22 |.....\n\|"...\n\"|
|000005c0| 88 0e 06 ab 84 5c 6e 0d | 4c 88 2c c0 87 22 20 5b |.....\n.|L.,.." [|
|000005d0| 66 69 6c 65 2d 63 6f 64 | 69 6e 67 2d 73 79 73 74 |file-cod|ing-syst|
|000005e0| 65 6d 2d 66 6f 72 2d 72 | 65 61 64 20 62 75 66 66 |em-for-r|ead buff|
|000005f0| 65 72 2d 66 69 6c 65 2d | 63 6f 64 69 6e 67 2d 73 |er-file-|coding-s|
|00000600| 79 73 74 65 6d 2d 66 6f | 72 2d 72 65 61 64 20 6e |ystem-fo|r-read n|
|00000610| 65 77 76 61 72 20 6f 6c | 64 76 61 72 20 62 6f 75 |ewvar ol|dvar bou|
|00000620| 6e 64 70 20 76 61 6c 75 | 65 20 6e 65 65 64 73 2d |ndp valu|e needs-|
|00000630| 73 65 74 74 69 6e 67 20 | 64 65 66 76 61 72 61 6c |setting |defvaral|
|00000640| 69 61 73 20 6d 61 6b 65 | 2d 6f 62 73 6f 6c 65 74 |ias make|-obsolet|
|00000650| 65 2d 76 61 72 69 61 62 | 6c 65 5d 20 33 29 0a 23 |e-variab|le] 3).#|
|00000660| 40 36 39 31 20 41 6c 69 | 73 74 20 74 6f 20 64 65 |@691 Ali|st to de|
|00000670| 63 69 64 65 20 61 20 63 | 6f 64 69 6e 67 20 73 79 |cide a c|oding sy|
|00000680| 73 74 65 6d 20 74 6f 20 | 75 73 65 20 66 6f 72 20 |stem to |use for |
|00000690| 61 20 66 69 6c 65 20 49 | 2f 4f 20 6f 70 65 72 61 |a file I|/O opera|
|000006a0| 74 69 6f 6e 2e 0a 54 68 | 65 20 66 6f 72 6d 61 74 |tion..Th|e format|
|000006b0| 20 69 73 20 28 28 50 41 | 54 54 45 52 4e 20 2e 20 | is ((PA|TTERN . |
|000006c0| 56 41 4c 29 20 2e 2e 2e | 29 2c 0a 77 68 65 72 65 |VAL) ...|),.where|
|000006d0| 20 50 41 54 54 45 52 4e | 20 69 73 20 61 20 72 65 | PATTERN| is a re|
|000006e0| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|000006f0| 20 6d 61 74 63 68 69 6e | 67 20 61 20 66 69 6c 65 | matchin|g a file|
|00000700| 20 6e 61 6d 65 2c 0a 56 | 41 4c 20 69 73 20 61 20 | name,.V|AL is a |
|00000710| 63 6f 64 69 6e 67 20 73 | 79 73 74 65 6d 2c 20 61 |coding s|ystem, a|
|00000720| 20 63 6f 6e 73 20 6f 66 | 20 63 6f 64 69 6e 67 20 | cons of| coding |
|00000730| 73 79 73 74 65 6d 73 2c | 20 6f 72 20 61 20 66 75 |systems,| or a fu|
|00000740| 6e 63 74 69 6f 6e 20 73 | 79 6d 62 6f 6c 2e 0a 49 |nction s|ymbol..I|
|00000750| 66 20 56 41 4c 20 69 73 | 20 61 20 63 6f 64 69 6e |f VAL is| a codin|
|00000760| 67 20 73 79 73 74 65 6d | 2c 20 69 74 20 69 73 20 |g system|, it is |
|00000770| 75 73 65 64 20 66 6f 72 | 20 62 6f 74 68 20 64 65 |used for| both de|
|00000780| 63 6f 64 69 6e 67 20 61 | 6e 64 20 65 6e 63 6f 64 |coding a|nd encod|
|00000790| 69 6e 67 0a 74 68 65 20 | 66 69 6c 65 20 63 6f 6e |ing.the |file con|
|000007a0| 74 65 6e 74 73 2e 0a 49 | 66 20 56 41 4c 20 69 73 |tents..I|f VAL is|
|000007b0| 20 61 20 63 6f 6e 73 20 | 6f 66 20 63 6f 64 69 6e | a cons |of codin|
|000007c0| 67 20 73 79 73 74 65 6d | 73 2c 20 74 68 65 20 63 |g system|s, the c|
|000007d0| 61 72 20 70 61 72 74 20 | 69 73 20 75 73 65 64 20 |ar part |is used |
|000007e0| 66 6f 72 20 64 65 63 6f | 64 69 6e 67 2c 0a 61 6e |for deco|ding,.an|
|000007f0| 64 20 74 68 65 20 63 64 | 72 20 70 61 72 74 20 69 |d the cd|r part i|
|00000800| 73 20 75 73 65 64 20 66 | 6f 72 20 65 6e 63 6f 64 |s used f|or encod|
|00000810| 69 6e 67 2e 0a 49 66 20 | 56 41 4c 20 69 73 20 61 |ing..If |VAL is a|
|00000820| 20 66 75 6e 63 74 69 6f | 6e 20 73 79 6d 62 6f 6c | functio|n symbol|
|00000830| 2c 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 6d |, the fu|nction m|
|00000840| 75 73 74 20 72 65 74 75 | 72 6e 20 61 20 63 6f 64 |ust retu|rn a cod|
|00000850| 69 6e 67 20 73 79 73 74 | 65 6d 0a 6f 72 20 61 20 |ing syst|em.or a |
|00000860| 63 6f 6e 73 20 6f 66 20 | 63 6f 64 69 6e 67 20 73 |cons of |coding s|
|00000870| 79 73 74 65 6d 73 20 77 | 68 69 63 68 20 61 72 65 |ystems w|hich are|
|00000880| 20 75 73 65 64 20 61 73 | 20 61 62 6f 76 65 2e 0a | used as| above..|
|00000890| 0a 54 68 69 73 20 6f 76 | 65 72 72 69 64 65 73 20 |.This ov|errides |
|000008a0| 74 68 65 20 6d 6f 72 65 | 20 67 65 6e 65 72 61 6c |the more| general|
|000008b0| 20 73 70 65 63 69 66 69 | 63 61 74 69 6f 6e 20 69 | specifi|cation i|
|000008c0| 6e 0a 60 62 75 66 66 65 | 72 2d 66 69 6c 65 2d 63 |n.`buffe|r-file-c|
|000008d0| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 2d 66 6f 72 |oding-sy|stem-for|
|000008e0| 2d 72 65 61 64 27 2c 20 | 62 75 74 20 69 73 20 6f |-read', |but is o|
|000008f0| 76 65 72 72 69 64 64 65 | 6e 20 62 79 0a 60 63 6f |verridde|n by.`co|
|00000900| 64 69 6e 67 2d 73 79 73 | 74 65 6d 2d 66 6f 72 2d |ding-sys|tem-for-|
|00000910| 72 65 61 64 27 2e 1f 0a | 28 64 65 66 76 61 72 20 |read'...|(defvar |
|00000920| 66 69 6c 65 2d 63 6f 64 | 69 6e 67 2d 73 79 73 74 |file-cod|ing-syst|
|00000930| 65 6d 2d 61 6c 69 73 74 | 20 27 28 28 22 5c 5c 2e |em-alist| '(("\\.|
|00000940| 65 6c 63 24 22 20 62 69 | 6e 61 72 79 20 2e 20 62 |elc$" bi|nary . b|
|00000950| 69 6e 61 72 79 29 20 28 | 22 6c 6f 61 64 64 65 66 |inary) (|"loaddef|
|00000960| 73 2e 65 6c 24 22 20 62 | 69 6e 61 72 79 20 2e 20 |s.el$" b|inary . |
|00000970| 62 69 6e 61 72 79 29 20 | 28 22 5c 5c 2e 74 61 72 |binary) |("\\.tar|
|00000980| 24 22 20 62 69 6e 61 72 | 79 20 2e 20 62 69 6e 61 |$" binar|y . bina|
|00000990| 72 79 29 20 28 22 54 55 | 54 4f 52 49 41 4c 5c 5c |ry) ("TU|TORIAL\\|
|000009a0| 2e 68 72 24 22 20 2e 20 | 69 73 6f 2d 38 38 35 39 |.hr$" . |iso-8859|
|000009b0| 2d 32 29 20 28 22 54 55 | 54 4f 52 49 41 4c 5c 5c |-2) ("TU|TORIAL\\|
|000009c0| 2e 70 6c 24 22 20 2e 20 | 69 73 6f 2d 38 38 35 39 |.pl$" . |iso-8859|
|000009d0| 2d 32 29 20 28 22 5c 5c | 2e 5c 5c 28 67 7a 5c 5c |-2) ("\\|.\\(gz\\|
|000009e0| 7c 5a 5c 5c 29 24 22 20 | 2e 20 62 69 6e 61 72 79 ||Z\\)$" |. binary|
|000009f0| 29 20 28 22 2f 73 70 6f | 6f 6c 2f 6d 61 69 6c 2f |) ("/spo|ol/mail/|
|00000a00| 2e 2a 24 22 20 2e 20 63 | 6f 6e 76 65 72 74 2d 6d |.*$" . c|onvert-m|
|00000a10| 62 6f 78 2d 63 6f 64 69 | 6e 67 2d 73 79 73 74 65 |box-codi|ng-syste|
|00000a20| 6d 29 29 20 28 23 24 20 | 2e 20 31 36 33 37 29 29 |m)) (#$ |. 1637))|
|00000a30| 0a 23 40 32 35 37 20 53 | 65 74 20 62 75 66 66 65 |.#@257 S|et buffe|
|00000a40| 72 2d 66 69 6c 65 2d 63 | 6f 64 69 6e 67 2d 73 79 |r-file-c|oding-sy|
|00000a50| 73 74 65 6d 20 6f 66 20 | 74 68 65 20 63 75 72 72 |stem of |the curr|
|00000a60| 65 6e 74 20 62 75 66 66 | 65 72 20 74 6f 20 43 4f |ent buff|er to CO|
|00000a70| 44 49 4e 47 2d 53 59 53 | 54 45 4d 2e 0a 49 66 20 |DING-SYS|TEM..If |
|00000a80| 6f 70 74 69 6f 6e 61 6c | 20 61 72 67 75 6d 65 6e |optional| argumen|
|00000a90| 74 20 46 4f 52 43 45 20 | 28 69 6e 74 65 72 61 63 |t FORCE |(interac|
|00000aa0| 74 69 76 65 6c 79 2c 20 | 74 68 65 20 70 72 65 66 |tively, |the pref|
|00000ab0| 69 78 20 61 72 67 75 6d | 65 6e 74 29 20 69 73 20 |ix argum|ent) is |
|00000ac0| 6e 6f 74 0a 67 69 76 65 | 6e 2c 20 61 74 74 65 6d |not.give|n, attem|
|00000ad0| 70 74 20 74 6f 20 6d 61 | 74 63 68 20 74 68 65 20 |pt to ma|tch the |
|00000ae0| 45 4f 4c 20 74 79 70 65 | 20 6f 66 20 74 68 65 20 |EOL type| of the |
|00000af0| 6e 65 77 20 63 6f 64 69 | 6e 67 20 73 79 73 74 65 |new codi|ng syste|
|00000b00| 6d 20 74 6f 0a 74 68 65 | 20 63 75 72 72 65 6e 74 |m to.the| current|
|00000b10| 20 76 61 6c 75 65 20 6f | 66 20 60 62 75 66 66 65 | value o|f `buffe|
|00000b20| 72 2d 66 69 6c 65 2d 63 | 6f 64 69 6e 67 2d 73 79 |r-file-c|oding-sy|
|00000b30| 73 74 65 6d 27 2e 1f 0a | 28 64 65 66 61 6c 69 61 |stem'...|(defalia|
|00000b40| 73 20 27 73 65 74 2d 62 | 75 66 66 65 72 2d 66 69 |s 'set-b|uffer-fi|
|00000b50| 6c 65 2d 63 6f 64 69 6e | 67 2d 73 79 73 74 65 6d |le-codin|g-system|
|00000b60| 20 23 5b 28 63 6f 64 69 | 6e 67 2d 73 79 73 74 65 | #[(codi|ng-syste|
|00000b70| 6d 20 26 6f 70 74 69 6f | 6e 61 6c 20 66 6f 72 63 |m &optio|nal forc|
|00000b80| 65 29 20 22 c0 09 21 88 | 5c 6e ac 87 c3 09 c4 0d |e) "..!.|\n......|
|00000b90| 21 5c 22 11 09 15 c6 c7 | 21 87 22 20 5b 67 65 74 |!\".....|!." [get|
|00000ba0| 2d 63 6f 64 69 6e 67 2d | 73 79 73 74 65 6d 20 63 |-coding-|system c|
|00000bb0| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 20 66 6f 72 |oding-sy|stem for|
|00000bc0| 63 65 20 73 75 62 73 69 | 64 69 61 72 79 2d 63 6f |ce subsi|diary-co|
|00000bd0| 64 69 6e 67 2d 73 79 73 | 74 65 6d 20 63 6f 64 69 |ding-sys|tem codi|
|00000be0| 6e 67 2d 73 79 73 74 65 | 6d 2d 65 6f 6c 2d 74 79 |ng-syste|m-eol-ty|
|00000bf0| 70 65 20 62 75 66 66 65 | 72 2d 66 69 6c 65 2d 63 |pe buffe|r-file-c|
|00000c00| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 20 72 65 64 |oding-sy|stem red|
|00000c10| 72 61 77 2d 6d 6f 64 65 | 6c 69 6e 65 20 74 5d 20 |raw-mode|line t] |
|00000c20| 34 20 28 23 24 20 2e 20 | 32 36 31 35 29 20 22 7a |4 (#$ . |2615) "z|
|00000c30| 46 69 6c 65 20 63 6f 64 | 69 6e 67 20 73 79 73 74 |File cod|ing syst|
|00000c40| 65 6d 3a 20 5c 6e 50 22 | 5d 29 0a 28 62 79 74 65 |em: \nP"|]).(byte|
|00000c50| 2d 63 6f 64 65 20 22 c0 | c1 1a 1b c4 0b 5c 6e 5c |-code ".|.....\n\|
|00000c60| 22 88 c5 0b 5c 6e 5c 22 | 88 2a c0 87 22 20 5b 73 |"...\n\"|.*.." [s|
|00000c70| 65 74 2d 66 69 6c 65 2d | 63 6f 64 69 6e 67 2d 73 |et-file-|coding-s|
|00000c80| 79 73 74 65 6d 20 73 65 | 74 2d 62 75 66 66 65 72 |ystem se|t-buffer|
|00000c90| 2d 66 69 6c 65 2d 63 6f | 64 69 6e 67 2d 73 79 73 |-file-co|ding-sys|
|00000ca0| 74 65 6d 20 6e 65 77 66 | 75 6e 20 6f 6c 64 66 75 |tem newf|un oldfu|
|00000cb0| 6e 20 64 65 66 69 6e 65 | 2d 66 75 6e 63 74 69 6f |n define|-functio|
|00000cc0| 6e 20 6d 61 6b 65 2d 6f | 62 73 6f 6c 65 74 65 5d |n make-o|bsolete]|
|00000cd0| 20 33 29 0a 23 40 32 32 | 39 20 53 65 74 20 74 68 | 3).#@22|9 Set th|
|00000ce0| 65 20 63 6f 64 69 6e 67 | 20 73 79 73 74 65 6d 20 |e coding| system |
|00000cf0| 75 73 65 64 20 77 68 65 | 6e 20 72 65 61 64 69 6e |used whe|n readin|
|00000d00| 67 20 69 6e 20 61 20 66 | 69 6c 65 2e 0a 54 68 69 |g in a f|ile..Thi|
|00000d10| 73 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |s is equ|ivalent |
|00000d20| 74 6f 20 73 65 74 74 69 | 6e 67 20 74 68 65 20 76 |to setti|ng the v|
|00000d30| 61 72 69 61 62 6c 65 0a | 60 62 75 66 66 65 72 2d |ariable.|`buffer-|
|00000d40| 66 69 6c 65 2d 63 6f 64 | 69 6e 67 2d 73 79 73 74 |file-cod|ing-syst|
|00000d50| 65 6d 2d 66 6f 72 2d 72 | 65 61 64 27 2e 20 20 59 |em-for-r|ead'. Y|
|00000d60| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 75 73 65 0a |ou can a|lso use.|
|00000d70| 60 66 69 6c 65 2d 63 6f | 64 69 6e 67 2d 73 79 73 |`file-co|ding-sys|
|00000d80| 74 65 6d 2d 61 6c 69 73 | 74 27 20 74 6f 20 73 70 |tem-alis|t' to sp|
|00000d90| 65 63 69 66 79 20 74 68 | 65 20 63 6f 64 69 6e 67 |ecify th|e coding|
|00000da0| 20 73 79 73 74 65 6d 20 | 66 6f 72 0a 70 61 72 74 | system |for.part|
|00000db0| 69 63 75 6c 61 72 20 66 | 69 6c 65 73 2e 1f 0a 28 |icular f|iles...(|
|00000dc0| 64 65 66 61 6c 69 61 73 | 20 27 73 65 74 2d 62 75 |defalias| 'set-bu|
|00000dd0| 66 66 65 72 2d 66 69 6c | 65 2d 63 6f 64 69 6e 67 |ffer-fil|e-coding|
|00000de0| 2d 73 79 73 74 65 6d 2d | 66 6f 72 2d 72 65 61 64 |-system-|for-read|
|00000df0| 20 23 5b 28 63 6f 64 69 | 6e 67 2d 73 79 73 74 65 | #[(codi|ng-syste|
|00000e00| 6d 29 20 22 c0 09 21 88 | 09 89 12 87 22 20 5b 67 |m) "..!.|...." [g|
|00000e10| 65 74 2d 63 6f 64 69 6e | 67 2d 73 79 73 74 65 6d |et-codin|g-system|
|00000e20| 20 63 6f 64 69 6e 67 2d | 73 79 73 74 65 6d 20 62 | coding-|system b|
|00000e30| 75 66 66 65 72 2d 66 69 | 6c 65 2d 63 6f 64 69 6e |uffer-fi|le-codin|
|00000e40| 67 2d 73 79 73 74 65 6d | 2d 66 6f 72 2d 72 65 61 |g-system|-for-rea|
|00000e50| 64 5d 20 32 20 28 23 24 | 20 2e 20 33 32 39 30 29 |d] 2 (#$| . 3290)|
|00000e60| 20 22 7a 46 69 6c 65 20 | 63 6f 64 69 6e 67 20 73 | "zFile |coding s|
|00000e70| 79 73 74 65 6d 20 66 6f | 72 20 72 65 61 64 3a 20 |ystem fo|r read: |
|00000e80| 22 5d 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |"]).(byt|e-code "|
|00000e90| c0 c1 1a 1b c4 0b 5c 6e | 5c 22 88 c5 0b 5c 6e 5c |......\n|\"...\n\|
|00000ea0| 22 88 2a c0 87 22 20 5b | 73 65 74 2d 66 69 6c 65 |".*.." [|set-file|
|00000eb0| 2d 63 6f 64 69 6e 67 2d | 73 79 73 74 65 6d 2d 66 |-coding-|system-f|
|00000ec0| 6f 72 2d 72 65 61 64 20 | 73 65 74 2d 62 75 66 66 |or-read |set-buff|
|00000ed0| 65 72 2d 66 69 6c 65 2d | 63 6f 64 69 6e 67 2d 73 |er-file-|coding-s|
|00000ee0| 79 73 74 65 6d 2d 66 6f | 72 2d 72 65 61 64 20 6e |ystem-fo|r-read n|
|00000ef0| 65 77 66 75 6e 20 6f 6c | 64 66 75 6e 20 64 65 66 |ewfun ol|dfun def|
|00000f00| 69 6e 65 2d 66 75 6e 63 | 74 69 6f 6e 20 6d 61 6b |ine-func|tion mak|
|00000f10| 65 2d 6f 62 73 6f 6c 65 | 74 65 5d 20 33 29 0a 23 |e-obsole|te] 3).#|
|00000f20| 40 32 36 33 20 53 65 74 | 20 74 68 65 20 64 65 66 |@263 Set| the def|
|00000f30| 61 75 6c 74 20 76 61 6c | 75 65 20 6f 66 20 60 62 |ault val|ue of `b|
|00000f40| 75 66 66 65 72 2d 66 69 | 6c 65 2d 63 6f 64 69 6e |uffer-fi|le-codin|
|00000f50| 67 2d 73 79 73 74 65 6d | 27 20 74 6f 20 43 4f 44 |g-system|' to COD|
|00000f60| 49 4e 47 2d 53 59 53 54 | 45 4d 2e 0a 54 68 65 20 |ING-SYST|EM..The |
|00000f70| 64 65 66 61 75 6c 74 20 | 76 61 6c 75 65 20 69 73 |default |value is|
|00000f80| 20 75 73 65 64 20 62 6f | 74 68 20 66 6f 72 20 62 | used bo|th for b|
|00000f90| 75 66 66 65 72 73 20 77 | 69 74 68 6f 75 74 20 61 |uffers w|ithout a|
|00000fa0| 73 73 6f 63 69 61 74 65 | 64 20 66 69 6c 65 73 0a |ssociate|d files.|
|00000fb0| 61 6e 64 20 66 6f 72 20 | 66 69 6c 65 73 20 77 69 |and for |files wi|
|00000fc0| 74 68 20 6e 6f 20 61 70 | 70 61 72 65 6e 74 20 63 |th no ap|parent c|
|00000fd0| 6f 64 69 6e 67 20 73 79 | 73 74 65 6d 20 28 69 2e |oding sy|stem (i.|
|00000fe0| 65 2e 20 70 72 69 6d 61 | 72 69 6c 79 20 41 53 43 |e. prima|rily ASC|
|00000ff0| 49 49 29 2e 0a 53 65 65 | 20 60 62 75 66 66 65 72 |II)..See| `buffer|
|00001000| 2d 66 69 6c 65 2d 63 6f | 64 69 6e 67 2d 73 79 73 |-file-co|ding-sys|
|00001010| 74 65 6d 27 20 66 6f 72 | 20 6d 6f 72 65 20 69 6e |tem' for| more in|
|00001020| 66 6f 72 6d 61 74 69 6f | 6e 2e 1f 0a 28 64 65 66 |formatio|n...(def|
|00001030| 61 6c 69 61 73 20 27 73 | 65 74 2d 64 65 66 61 75 |alias 's|et-defau|
|00001040| 6c 74 2d 62 75 66 66 65 | 72 2d 66 69 6c 65 2d 63 |lt-buffe|r-file-c|
|00001050| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 20 23 5b 28 |oding-sy|stem #[(|
|00001060| 63 6f 64 69 6e 67 2d 73 | 79 73 74 65 6d 29 20 22 |coding-s|ystem) "|
|00001070| c0 c1 5c 6e 5c 22 88 c3 | c4 21 87 22 20 5b 73 65 |..\n\"..|.!." [se|
|00001080| 74 2d 64 65 66 61 75 6c | 74 20 62 75 66 66 65 72 |t-defaul|t buffer|
|00001090| 2d 66 69 6c 65 2d 63 6f | 64 69 6e 67 2d 73 79 73 |-file-co|ding-sys|
|000010a0| 74 65 6d 20 63 6f 64 69 | 6e 67 2d 73 79 73 74 65 |tem codi|ng-syste|
|000010b0| 6d 20 72 65 64 72 61 77 | 2d 6d 6f 64 65 6c 69 6e |m redraw|-modelin|
|000010c0| 65 20 74 5d 20 33 20 28 | 23 24 20 2e 20 33 38 37 |e t] 3 (|#$ . 387|
|000010d0| 37 29 20 22 7a 44 65 66 | 61 75 6c 74 20 66 69 6c |7) "zDef|ault fil|
|000010e0| 65 20 63 6f 64 69 6e 67 | 20 73 79 73 74 65 6d 3a |e coding| system:|
|000010f0| 20 22 5d 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 | "]).(by|te-code |
|00001100| 22 c0 c1 1a 1b c4 0b 5c | 6e 5c 22 88 c5 0b 5c 6e |"......\|n\"...\n|
|00001110| 5c 22 88 2a c0 87 22 20 | 5b 73 65 74 2d 64 65 66 |\".*.." |[set-def|
|00001120| 61 75 6c 74 2d 66 69 6c | 65 2d 63 6f 64 69 6e 67 |ault-fil|e-coding|
|00001130| 2d 73 79 73 74 65 6d 20 | 73 65 74 2d 64 65 66 61 |-system |set-defa|
|00001140| 75 6c 74 2d 62 75 66 66 | 65 72 2d 66 69 6c 65 2d |ult-buff|er-file-|
|00001150| 63 6f 64 69 6e 67 2d 73 | 79 73 74 65 6d 20 6e 65 |coding-s|ystem ne|
|00001160| 77 66 75 6e 20 6f 6c 64 | 66 75 6e 20 64 65 66 69 |wfun old|fun defi|
|00001170| 6e 65 2d 66 75 6e 63 74 | 69 6f 6e 20 6d 61 6b 65 |ne-funct|ion make|
|00001180| 2d 6f 62 73 6f 6c 65 74 | 65 5d 20 33 29 0a 23 40 |-obsolet|e] 3).#@|
|00001190| 31 38 35 20 4c 6f 6f 6b | 20 75 70 20 63 6f 64 69 |185 Look| up codi|
|000011a0| 6e 67 20 73 79 73 74 65 | 6d 20 74 6f 20 72 65 61 |ng syste|m to rea|
|000011b0| 64 20 61 20 66 69 6c 65 | 20 69 6e 20 60 66 69 6c |d a file| in `fil|
|000011c0| 65 2d 63 6f 64 69 6e 67 | 2d 73 79 73 74 65 6d 2d |e-coding|-system-|
|000011d0| 61 6c 69 73 74 27 2e 0a | 54 68 65 20 72 65 74 75 |alist'..|The retu|
|000011e0| 72 6e 20 76 61 6c 75 65 | 20 77 69 6c 6c 20 62 65 |rn value| will be|
|000011f0| 20 6e 69 6c 20 28 6e 6f | 20 61 70 70 6c 69 63 61 | nil (no| applica|
|00001200| 62 6c 65 20 65 6e 74 72 | 79 29 20 6f 72 20 61 20 |ble entr|y) or a |
|00001210| 63 6f 64 69 6e 67 20 73 | 79 73 74 65 6d 0a 6f 62 |coding s|ystem.ob|
|00001220| 6a 65 63 74 20 28 74 68 | 65 20 65 6e 74 72 79 20 |ject (th|e entry |
|00001230| 73 70 65 63 69 66 69 65 | 64 20 61 20 63 6f 64 69 |specifie|d a codi|
|00001240| 6e 67 20 73 79 73 74 65 | 6d 29 2e 1f 0a 28 64 65 |ng syste|m)...(de|
|00001250| 66 61 6c 69 61 73 20 27 | 66 69 6e 64 2d 66 69 6c |falias '|find-fil|
|00001260| 65 2d 63 6f 64 69 6e 67 | 2d 73 79 73 74 65 6d 2d |e-coding|-system-|
|00001270| 66 6f 72 2d 72 65 61 64 | 2d 66 72 6f 6d 2d 66 69 |for-read|-from-fi|
|00001280| 6c 65 6e 61 6d 65 20 23 | 5b 28 66 69 6c 65 6e 61 |lename #|[(filena|
|00001290| 6d 65 29 20 22 08 c1 89 | 1a 1b 1c 0d c6 61 1e 07 |me) "...|.....a..|
|000012a0| c8 0e 09 21 16 09 0b ac | 97 0c ab 94 ca 0c 40 40 |...!....|......@@|
|000012b0| 0e 09 5c 22 ab 86 0c 40 | 41 12 cb 13 0c 41 14 aa |..\"...@|A....A..|
|000012c0| 66 29 5c 6e ad 98 cc 5c | 6e 21 ab 86 5c 6e cd 0e |f)\n...\|n!..\n..|
|000012d0| 09 5c 22 12 5c 6e 3a ab | 86 ce 5c 6e 40 21 aa 83 |.\".\n:.|..\n@!..|
|000012e0| ce 5c 6e 21 2b 87 22 20 | 5b 66 69 6c 65 2d 63 6f |.\n!+." |[file-co|
|000012f0| 64 69 6e 67 2d 73 79 73 | 74 65 6d 2d 61 6c 69 73 |ding-sys|tem-alis|
|00001300| 74 20 6e 69 6c 20 63 6f | 64 65 73 79 73 20 66 6f |t nil co|desys fo|
|00001310| 75 6e 64 20 61 6c 69 73 | 74 20 73 79 73 74 65 6d |und alis|t system|
|00001320| 2d 74 79 70 65 20 76 61 | 78 2d 76 6d 73 20 63 61 |-type va|x-vms ca|
|00001330| 73 65 2d 66 6f 6c 64 2d | 73 65 61 72 63 68 20 66 |se-fold-|search f|
|00001340| 69 6c 65 2d 6e 61 6d 65 | 2d 73 61 6e 73 2d 76 65 |ile-name|-sans-ve|
|00001350| 72 73 69 6f 6e 73 20 66 | 69 6c 65 6e 61 6d 65 20 |rsions f|ilename |
|00001360| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 74 20 66 |string-m|atch t f|
|00001370| 75 6e 63 74 69 6f 6e 70 | 20 69 6e 73 65 72 74 2d |unctionp| insert-|
|00001380| 66 69 6c 65 2d 63 6f 6e | 74 65 6e 74 73 20 66 69 |file-con|tents fi|
|00001390| 6e 64 2d 63 6f 64 69 6e | 67 2d 73 79 73 74 65 6d |nd-codin|g-system|
|000013a0| 5d 20 33 20 28 23 24 20 | 2e 20 34 35 30 30 29 5d |] 3 (#$ |. 4500)]|
|000013b0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|000013c0| 1a 1b c4 0b 5c 6e 5c 22 | 88 c5 0b 5c 6e 5c 22 88 |....\n\"|...\n\".|
|000013d0| 2a c0 87 22 20 5b 66 69 | 6e 64 2d 66 69 6c 65 2d |*.." [fi|nd-file-|
|000013e0| 63 6f 64 69 6e 67 2d 73 | 79 73 74 65 6d 2d 66 72 |coding-s|ystem-fr|
|000013f0| 6f 6d 2d 66 69 6c 65 6e | 61 6d 65 20 66 69 6e 64 |om-filen|ame find|
|00001400| 2d 66 69 6c 65 2d 63 6f | 64 69 6e 67 2d 73 79 73 |-file-co|ding-sys|
|00001410| 74 65 6d 2d 66 6f 72 2d | 72 65 61 64 2d 66 72 6f |tem-for-|read-fro|
|00001420| 6d 2d 66 69 6c 65 6e 61 | 6d 65 20 6e 65 77 66 75 |m-filena|me newfu|
|00001430| 6e 20 6f 6c 64 66 75 6e | 20 64 65 66 69 6e 65 2d |n oldfun| define-|
|00001440| 66 75 6e 63 74 69 6f 6e | 20 6d 61 6b 65 2d 6f 62 |function| make-ob|
|00001450| 73 6f 6c 65 74 65 5d 20 | 33 29 0a 23 40 31 38 36 |solete] |3).#@186|
|00001460| 20 4c 6f 6f 6b 20 75 70 | 20 63 6f 64 69 6e 67 20 | Look up| coding |
|00001470| 73 79 73 74 65 6d 20 74 | 6f 20 77 72 69 74 65 20 |system t|o write |
|00001480| 61 20 66 69 6c 65 20 69 | 6e 20 60 66 69 6c 65 2d |a file i|n `file-|
|00001490| 63 6f 64 69 6e 67 2d 73 | 79 73 74 65 6d 2d 61 6c |coding-s|ystem-al|
|000014a0| 69 73 74 27 2e 0a 54 68 | 65 20 72 65 74 75 72 6e |ist'..Th|e return|
|000014b0| 20 76 61 6c 75 65 20 77 | 69 6c 6c 20 62 65 20 6e | value w|ill be n|
|000014c0| 69 6c 20 28 6e 6f 20 61 | 70 70 6c 69 63 61 62 6c |il (no a|pplicabl|
|000014d0| 65 20 65 6e 74 72 79 29 | 20 6f 72 20 61 20 63 6f |e entry)| or a co|
|000014e0| 64 69 6e 67 20 73 79 73 | 74 65 6d 0a 6f 62 6a 65 |ding sys|tem.obje|
|000014f0| 63 74 20 28 74 68 65 20 | 65 6e 74 72 79 20 73 70 |ct (the |entry sp|
|00001500| 65 63 69 66 69 65 64 20 | 61 20 63 6f 64 69 6e 67 |ecified |a coding|
|00001510| 20 73 79 73 74 65 6d 29 | 2e 1f 0a 28 64 65 66 61 | system)|...(defa|
|00001520| 6c 69 61 73 20 27 66 69 | 6e 64 2d 66 69 6c 65 2d |lias 'fi|nd-file-|
|00001530| 63 6f 64 69 6e 67 2d 73 | 79 73 74 65 6d 2d 66 6f |coding-s|ystem-fo|
|00001540| 72 2d 77 72 69 74 65 2d | 66 72 6f 6d 2d 66 69 6c |r-write-|from-fil|
|00001550| 65 6e 61 6d 65 20 23 5b | 28 66 69 6c 65 6e 61 6d |ename #[|(filenam|
|00001560| 65 29 20 22 08 c1 89 1a | 1b 1c 0d c6 61 1e 07 c8 |e) "....|....a...|
|00001570| 0e 09 21 16 09 0b ac 97 | 0c ab 94 ca 0c 40 40 0e |..!.....|.....@@.|
|00001580| 09 5c 22 ab 86 0c 40 41 | 12 cb 13 0c 41 14 aa 66 |.\"...@A|....A..f|
|00001590| 29 5c 6e ad 98 cc 5c 6e | 21 ab 86 5c 6e cd 0e 09 |)\n...\n|!..\n...|
|000015a0| 5c 22 12 5c 6e 3a ab 86 | ce 5c 6e 41 21 aa 83 ce |\".\n:..|.\nA!...|
|000015b0| 5c 6e 21 2b 87 22 20 5b | 66 69 6c 65 2d 63 6f 64 |\n!+." [|file-cod|
|000015c0| 69 6e 67 2d 73 79 73 74 | 65 6d 2d 61 6c 69 73 74 |ing-syst|em-alist|
|000015d0| 20 6e 69 6c 20 63 6f 64 | 65 73 79 73 20 66 6f 75 | nil cod|esys fou|
|000015e0| 6e 64 20 61 6c 69 73 74 | 20 73 79 73 74 65 6d 2d |nd alist| system-|
|000015f0| 74 79 70 65 20 76 61 78 | 2d 76 6d 73 20 63 61 73 |type vax|-vms cas|
|00001600| 65 2d 66 6f 6c 64 2d 73 | 65 61 72 63 68 20 66 69 |e-fold-s|earch fi|
|00001610| 6c 65 2d 6e 61 6d 65 2d | 73 61 6e 73 2d 76 65 72 |le-name-|sans-ver|
|00001620| 73 69 6f 6e 73 20 66 69 | 6c 65 6e 61 6d 65 20 73 |sions fi|lename s|
|00001630| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 74 20 66 75 |tring-ma|tch t fu|
|00001640| 6e 63 74 69 6f 6e 70 20 | 77 72 69 74 65 2d 72 65 |nctionp |write-re|
|00001650| 67 69 6f 6e 20 66 69 6e | 64 2d 63 6f 64 69 6e 67 |gion fin|d-coding|
|00001660| 2d 73 79 73 74 65 6d 5d | 20 33 20 28 23 24 20 2e |-system]| 3 (#$ .|
|00001670| 20 35 32 31 37 29 5d 29 | 0a 23 40 31 34 36 20 44 | 5217)])|.#@146 D|
|00001680| 65 63 6f 64 69 6e 67 20 | 66 75 6e 63 74 69 6f 6e |ecoding |function|
|00001690| 20 66 6f 72 20 55 6e 69 | 78 20 6d 61 69 6c 62 6f | for Uni|x mailbo|
|000016a0| 78 65 73 2e 0a 44 6f 65 | 73 20 73 65 70 61 72 61 |xes..Doe|s separa|
|000016b0| 74 65 20 64 65 74 65 63 | 74 69 6f 6e 20 61 6e 64 |te detec|tion and|
|000016c0| 20 64 65 63 6f 64 69 6e | 67 20 6f 6e 20 65 61 63 | decodin|g on eac|
|000016d0| 68 20 6d 65 73 73 61 67 | 65 2c 20 73 69 6e 63 65 |h messag|e, since|
|000016e0| 20 65 61 63 68 0a 6d 65 | 73 73 61 67 65 20 6d 69 | each.me|ssage mi|
|000016f0| 67 68 74 20 62 65 20 69 | 6e 20 61 20 64 69 66 66 |ght be i|n a diff|
|00001700| 65 72 65 6e 74 20 65 6e | 63 6f 64 69 6e 67 2e 1f |erent en|coding..|
|00001710| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6e 76 |.(defali|as 'conv|
|00001720| 65 72 74 2d 6d 62 6f 78 | 2d 63 6f 64 69 6e 67 2d |ert-mbox|-coding-|
|00001730| 73 79 73 74 65 6d 20 23 | 5b 28 66 69 6c 65 6e 61 |system #|[(filena|
|00001740| 6d 65 20 76 69 73 69 74 | 20 73 74 61 72 74 20 65 |me visit| start e|
|00001750| 6e 64 29 20 22 c0 19 8c | 5c 6e 0b 7d 88 65 62 88 |nd) "...|\n.}.eb.|
|00001760| 6d 3f ad 9c 60 c0 1b 1a | c4 75 88 c5 c6 c0 c7 23 |m?..`...|.u.....#|
|00001770| ab 83 c8 79 88 60 13 c9 | 5c 6e 0b ca 23 88 2a aa |...y.`..|\n..#.*.|
|00001780| 60 2a 87 22 20 5b 6e 69 | 6c 20 62 75 66 66 65 72 |`*." [ni|l buffer|
|00001790| 2d 72 65 61 64 2d 6f 6e | 6c 79 20 73 74 61 72 74 |-read-on|ly start|
|000017a0| 20 65 6e 64 20 31 20 72 | 65 2d 73 65 61 72 63 68 | end 1 r|e-search|
|000017b0| 2d 66 6f 72 77 61 72 64 | 20 22 5e 46 72 6f 6d 22 |-forward| "^From"|
|000017c0| 20 6d 6f 76 65 20 30 20 | 64 65 63 6f 64 65 2d 63 | move 0 |decode-c|
|000017d0| 6f 64 69 6e 67 2d 72 65 | 67 69 6f 6e 20 75 6e 64 |oding-re|gion und|
|000017e0| 65 63 69 64 65 64 5d 20 | 34 20 28 23 24 20 2e 20 |ecided] |4 (#$ . |
|000017f0| 35 37 35 39 29 5d 29 0a | 23 40 36 35 20 4c 6f 6f |5759)]).|#@65 Loo|
|00001800| 6b 20 66 6f 72 20 74 68 | 65 20 63 6f 64 69 6e 67 |k for th|e coding|
|00001810| 2d 73 79 73 74 65 6d 20 | 6d 61 67 69 63 20 63 6f |-system |magic co|
|00001820| 6f 6b 69 65 20 69 6e 20 | 74 68 65 20 63 75 72 72 |okie in |the curr|
|00001830| 65 6e 74 20 62 75 66 66 | 65 72 2e 0a 1f 0a 28 64 |ent buff|er....(d|
|00001840| 65 66 61 6c 69 61 73 20 | 27 66 69 6e 64 2d 63 6f |efalias |'find-co|
|00001850| 64 69 6e 67 2d 73 79 73 | 74 65 6d 2d 6d 61 67 69 |ding-sys|tem-magi|
|00001860| 63 2d 63 6f 6f 6b 69 65 | 20 23 5b 6e 69 6c 20 22 |c-cookie| #[nil "|
|00001870| 8a 65 62 88 c0 c1 21 ab | 91 c2 c3 94 c3 95 7b 21 |.eb...!.|......{!|
|00001880| 1c c5 0c 21 ad 81 0c 29 | ae ae c6 1e 07 c8 c9 65 |...!...)|.......e|
|00001890| ca 5c 5c cb 23 ad a1 60 | cc c6 77 88 60 1e 0d 1e |.\\.#..`|..w.`...|
|000018a0| 0e 0e 0d 0e 0e 56 ad 8f | c2 0e 0e 0e 0d 7b 21 1c |.....V..|.....{!.|
|000018b0| c5 0c 21 ad 81 0c 29 2a | 29 29 87 22 20 5b 6c 6f |..!...)*|))." [lo|
|000018c0| 6f 6b 69 6e 67 2d 61 74 | 20 22 5e 2d 5c 5c 2a 2d |oking-at| "^-\\*-|
|000018d0| 5b 5e 5c 6e 5d 2a 63 6f | 64 69 6e 67 3a 20 5c 5c |[^\n]*co|ding: \\|
|000018e0| 28 5b 5e 20 09 5c 6e 3b | 5d 2b 5c 5c 29 3b 5b 5e |([^ .\n;|]+\\);[^|
|000018f0| 5c 6e 5d 2a 2d 5c 5c 2a | 2d 22 20 69 6e 74 65 72 |\n]*-\\*|-" inter|
|00001900| 6e 20 31 20 63 6f 64 65 | 73 79 73 20 66 69 6e 64 |n 1 code|sys find|
|00001910| 2d 63 6f 64 69 6e 67 2d | 73 79 73 74 65 6d 20 6e |-coding-|system n|
|00001920| 69 6c 20 63 61 73 65 2d | 66 6f 6c 64 2d 73 65 61 |il case-|fold-sea|
|00001930| 72 63 68 20 73 65 61 72 | 63 68 2d 66 6f 72 77 61 |rch sear|ch-forwa|
|00001940| 72 64 20 22 3b 3b 3b 23 | 23 23 63 6f 64 69 6e 67 |rd ";;;#|##coding|
|00001950| 20 73 79 73 74 65 6d 3a | 20 22 20 33 30 30 30 20 | system:| " 3000 |
|00001960| 74 20 22 5e 20 09 5c 6e | 0d 22 20 65 6e 64 20 73 |t "^ .\n|." end s|
|00001970| 74 61 72 74 5d 20 34 20 | 28 23 24 20 2e 20 36 31 |tart] 4 |(#$ . 61|
|00001980| 34 31 29 5d 29 0a 23 40 | 34 37 35 20 45 78 65 63 |41)]).#@|475 Exec|
|00001990| 75 74 65 20 61 20 66 69 | 6c 65 20 6f 66 20 4c 69 |ute a fi|le of Li|
|000019a0| 73 70 20 63 6f 64 65 20 | 6e 61 6d 65 64 20 46 49 |sp code |named FI|
|000019b0| 4c 45 2e 0a 46 69 72 73 | 74 20 74 72 69 65 73 20 |LE..Firs|t tries |
|000019c0| 46 49 4c 45 20 77 69 74 | 68 20 2e 65 6c 63 20 61 |FILE wit|h .elc a|
|000019d0| 70 70 65 6e 64 65 64 2c | 20 74 68 65 6e 20 74 72 |ppended,| then tr|
|000019e0| 69 65 73 20 77 69 74 68 | 20 2e 65 6c 2c 0a 20 74 |ies with| .el,. t|
|000019f0| 68 65 6e 20 74 72 69 65 | 73 20 46 49 4c 45 20 75 |hen trie|s FILE u|
|00001a00| 6e 6d 6f 64 69 66 69 65 | 64 2e 20 20 53 65 61 72 |nmodifie|d. Sear|
|00001a10| 63 68 65 73 20 64 69 72 | 65 63 74 6f 72 69 65 73 |ches dir|ectories|
|00001a20| 20 69 6e 20 6c 6f 61 64 | 2d 70 61 74 68 2e 0a 49 | in load|-path..I|
|00001a30| 66 20 6f 70 74 69 6f 6e | 61 6c 20 73 65 63 6f 6e |f option|al secon|
|00001a40| 64 20 61 72 67 20 4e 4f | 45 52 52 4f 52 20 69 73 |d arg NO|ERROR is|
|00001a50| 20 6e 6f 6e 2d 6e 69 6c | 2c 0a 20 72 65 70 6f 72 | non-nil|,. repor|
|00001a60| 74 20 6e 6f 20 65 72 72 | 6f 72 20 69 66 20 46 49 |t no err|or if FI|
|00001a70| 4c 45 20 64 6f 65 73 6e | 27 74 20 65 78 69 73 74 |LE doesn|'t exist|
|00001a80| 2e 0a 50 72 69 6e 74 20 | 6d 65 73 73 61 67 65 73 |..Print |messages|
|00001a90| 20 61 74 20 73 74 61 72 | 74 20 61 6e 64 20 65 6e | at star|t and en|
|00001aa0| 64 20 6f 66 20 6c 6f 61 | 64 69 6e 67 20 75 6e 6c |d of loa|ding unl|
|00001ab0| 65 73 73 0a 20 6f 70 74 | 69 6f 6e 61 6c 20 74 68 |ess. opt|ional th|
|00001ac0| 69 72 64 20 61 72 67 20 | 4e 4f 4d 45 53 53 41 47 |ird arg |NOMESSAG|
|00001ad0| 45 20 69 73 20 6e 6f 6e | 2d 6e 69 6c 2e 0a 49 66 |E is non|-nil..If|
|00001ae0| 20 6f 70 74 69 6f 6e 61 | 6c 20 66 6f 75 72 74 68 | optiona|l fourth|
|00001af0| 20 61 72 67 20 4e 4f 53 | 55 46 46 49 58 20 69 73 | arg NOS|UFFIX is|
|00001b00| 20 6e 6f 6e 2d 6e 69 6c | 2c 20 64 6f 6e 27 74 20 | non-nil|, don't |
|00001b10| 74 72 79 20 61 64 64 69 | 6e 67 0a 20 73 75 66 66 |try addi|ng. suff|
|00001b20| 69 78 65 73 20 2e 65 6c | 63 20 6f 72 20 2e 65 6c |ixes .el|c or .el|
|00001b30| 20 74 6f 20 74 68 65 20 | 73 70 65 63 69 66 69 65 | to the |specifie|
|00001b40| 64 20 6e 61 6d 65 20 46 | 49 4c 45 2e 0a 52 65 74 |d name F|ILE..Ret|
|00001b50| 75 72 6e 20 74 20 69 66 | 20 66 69 6c 65 20 65 78 |urn t if| file ex|
|00001b60| 69 73 74 73 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |ists...(|defalias|
|00001b70| 20 27 6c 6f 61 64 20 23 | 5b 28 66 69 6c 65 20 26 | 'load #|[(file &|
|00001b80| 6f 70 74 69 6f 6e 61 6c | 20 6e 6f 65 72 72 6f 72 |optional| noerror|
|00001b90| 20 6e 6f 6d 65 73 73 61 | 67 65 20 6e 6f 73 75 66 | nomessa|ge nosuf|
|00001ba0| 66 69 78 29 20 22 c0 09 | 21 1a c3 5c 6e c4 5c 22 |fix) "..|!..\n.\"|
|00001bb0| 1d c6 1e 07 0d ab 8c 0d | c4 5c 6e 0e 08 0e 09 0e |........|.\n.....|
|00001bc0| 5c 6e 25 aa ec 5c 6e 47 | cb 58 ac 90 cc 5c 6e 0e |\n%..\nG|.X...\n.|
|00001bd0| 0d 0e 5c 6e 3f ad 81 ce | 23 89 16 07 ac 8d 0e 08 |..\n?...|#.......|
|00001be0| 3f ad d1 cf d0 d1 5c 6e | 44 5c 22 aa c9 c6 1e 12 |?.....\n|D\".....|
|00001bf0| 8a d3 d4 21 71 88 d5 20 | 88 d6 1e 17 d8 0e 07 c6 |...!q.. |........|
|00001c00| d9 da 24 88 29 db 20 16 | 12 29 0e 07 dc c6 4f 97 |..$.). .|.)....O.|
|00001c10| dd 98 ab 89 0e 12 ac 92 | de 16 12 aa 8d 0e 12 ac |........|........|
|00001c20| 89 df 09 21 ae 82 0e 17 | 16 12 e0 09 0e 08 0e 09 |...!....|........|
|00001c30| 0e 5c 6e 0e 12 25 29 2b | 87 22 20 5b 73 75 62 73 |.\n..%)+|." [subs|
|00001c40| 74 69 74 75 74 65 2d 69 | 6e 2d 66 69 6c 65 2d 6e |titute-i|n-file-n|
|00001c50| 61 6d 65 20 66 69 6c 65 | 20 66 69 6c 65 6e 61 6d |ame file| filenam|
|00001c60| 65 20 66 69 6e 64 2d 66 | 69 6c 65 2d 6e 61 6d 65 |e find-f|ile-name|
|00001c70| 2d 68 61 6e 64 6c 65 72 | 20 6c 6f 61 64 20 68 61 |-handler| load ha|
|00001c80| 6e 64 6c 65 72 20 6e 69 | 6c 20 70 61 74 68 20 6e |ndler ni|l path n|
|00001c90| 6f 65 72 72 6f 72 20 6e | 6f 6d 65 73 73 61 67 65 |oerror n|omessage|
|00001ca0| 20 6e 6f 73 75 66 66 69 | 78 20 30 20 6c 6f 63 61 | nosuffi|x 0 loca|
|00001cb0| 74 65 2d 66 69 6c 65 20 | 6c 6f 61 64 2d 70 61 74 |te-file |load-pat|
|00001cc0| 68 20 22 2e 65 6c 63 3a | 2e 65 6c 3a 22 20 73 69 |h ".elc:|.el:" si|
|00001cd0| 67 6e 61 6c 20 66 69 6c | 65 2d 65 72 72 6f 72 20 |gnal fil|e-error |
|00001ce0| 22 43 61 6e 6e 6f 74 20 | 6f 70 65 6e 20 6c 6f 61 |"Cannot |open loa|
|00001cf0| 64 20 66 69 6c 65 22 20 | 5f 5f 63 6f 64 65 73 79 |d file" |__codesy|
|00001d00| 73 5f 5f 20 67 65 74 2d | 62 75 66 66 65 72 2d 63 |s__ get-|buffer-c|
|00001d10| 72 65 61 74 65 20 22 20 | 2a 6c 6f 61 64 2a 22 20 |reate " |*load*" |
|00001d20| 65 72 61 73 65 2d 62 75 | 66 66 65 72 20 6e 6f 2d |erase-bu|ffer no-|
|00001d30| 63 6f 6e 76 65 72 73 69 | 6f 6e 20 62 75 66 66 65 |conversi|on buffe|
|00001d40| 72 2d 66 69 6c 65 2d 63 | 6f 64 69 6e 67 2d 73 79 |r-file-c|oding-sy|
|00001d50| 73 74 65 6d 2d 66 6f 72 | 2d 72 65 61 64 20 69 6e |stem-for|-read in|
|00001d60| 73 65 72 74 2d 66 69 6c | 65 2d 63 6f 6e 74 65 6e |sert-fil|e-conten|
|00001d70| 74 73 20 31 20 33 30 30 | 31 20 66 69 6e 64 2d 63 |ts 1 300|1 find-c|
|00001d80| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 2d 6d 61 67 |oding-sy|stem-mag|
|00001d90| 69 63 2d 63 6f 6f 6b 69 | 65 20 2d 34 20 22 2e 65 |ic-cooki|e -4 ".e|
|00001da0| 6c 63 22 20 62 69 6e 61 | 72 79 20 66 69 6e 64 2d |lc" bina|ry find-|
|00001db0| 66 69 6c 65 2d 63 6f 64 | 69 6e 67 2d 73 79 73 74 |file-cod|ing-syst|
|00001dc0| 65 6d 2d 66 6f 72 2d 72 | 65 61 64 2d 66 72 6f 6d |em-for-r|ead-from|
|00001dd0| 2d 66 69 6c 65 6e 61 6d | 65 20 6c 6f 61 64 2d 69 |-filenam|e load-i|
|00001de0| 6e 74 65 72 6e 61 6c 5d | 20 36 20 28 23 24 20 2e |nternal]| 6 (#$ .|
|00001df0| 20 36 35 34 30 29 5d 29 | 0a 23 40 32 34 36 20 41 | 6540)])|.#@246 A|
|00001e00| 20 68 6f 6f 6b 20 74 6f | 20 6d 61 6b 65 20 61 20 | hook to| make a |
|00001e10| 66 69 6c 65 20 61 63 63 | 65 73 73 69 62 6c 65 20 |file acc|essible |
|00001e20| 62 65 66 6f 72 65 20 72 | 65 61 64 69 6e 67 20 69 |before r|eading i|
|00001e30| 74 2e 0a 60 69 6e 73 65 | 72 74 2d 66 69 6c 65 2d |t..`inse|rt-file-|
|00001e40| 63 6f 6e 74 65 6e 74 73 | 27 20 63 61 6c 6c 73 20 |contents|' calls |
|00001e50| 74 68 69 73 20 68 6f 6f | 6b 20 62 65 66 6f 72 65 |this hoo|k before|
|00001e60| 20 64 6f 69 6e 67 20 61 | 6e 79 74 68 69 6e 67 20 | doing a|nything |
|00001e70| 65 6c 73 65 2e 0a 43 61 | 6c 6c 65 64 20 77 69 74 |else..Ca|lled wit|
|00001e80| 68 20 74 77 6f 20 61 72 | 67 75 6d 65 6e 74 73 3a |h two ar|guments:|
|00001e90| 20 46 49 4c 45 4e 41 4d | 45 20 61 6e 64 20 56 49 | FILENAM|E and VI|
|00001ea0| 53 49 54 2c 20 74 68 65 | 20 73 61 6d 65 20 61 73 |SIT, the| same as|
|00001eb0| 20 74 68 65 0a 63 6f 72 | 72 65 73 70 6f 6e 64 69 | the.cor|respondi|
|00001ec0| 6e 67 20 61 72 67 75 6d | 65 6e 74 73 20 69 6e 20 |ng argum|ents in |
|00001ed0| 74 68 65 20 63 61 6c 6c | 20 74 6f 20 60 69 6e 73 |the call| to `ins|
|00001ee0| 65 72 74 2d 66 69 6c 65 | 2d 63 6f 6e 74 65 6e 74 |ert-file|-content|
|00001ef0| 73 27 2e 1f 0a 28 64 65 | 66 76 61 72 20 69 6e 73 |s'...(de|fvar ins|
|00001f00| 65 72 74 2d 66 69 6c 65 | 2d 63 6f 6e 74 65 6e 74 |ert-file|-content|
|00001f10| 73 2d 61 63 63 65 73 73 | 2d 68 6f 6f 6b 20 6e 69 |s-access|-hook ni|
|00001f20| 6c 20 28 23 24 20 2e 20 | 37 36 37 39 29 29 0a 23 |l (#$ . |7679)).#|
|00001f30| 40 38 37 38 20 41 20 73 | 70 65 63 69 61 6c 20 68 |@878 A s|pecial h|
|00001f40| 6f 6f 6b 20 74 6f 20 64 | 65 63 69 64 65 20 74 68 |ook to d|ecide th|
|00001f50| 65 20 63 6f 64 69 6e 67 | 20 73 79 73 74 65 6d 20 |e coding| system |
|00001f60| 75 73 65 64 20 66 6f 72 | 20 72 65 61 64 69 6e 67 |used for| reading|
|00001f70| 20 69 6e 20 61 20 66 69 | 6c 65 2e 0a 0a 42 65 66 | in a fi|le...Bef|
|00001f80| 6f 72 65 20 72 65 61 64 | 69 6e 67 20 61 20 66 69 |ore read|ing a fi|
|00001f90| 6c 65 2c 20 60 69 6e 73 | 65 72 74 2d 66 69 6c 65 |le, `ins|ert-file|
|00001fa0| 2d 63 6f 6e 74 65 6e 74 | 73 27 20 63 61 6c 6c 73 |-content|s' calls|
|00001fb0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 73 20 6f | the fun|ctions o|
|00001fc0| 6e 0a 74 68 69 73 20 68 | 6f 6f 6b 20 77 69 74 68 |n.this h|ook with|
|00001fd0| 20 61 72 67 75 6d 65 6e | 74 73 20 46 49 4c 45 4e | argumen|ts FILEN|
|00001fe0| 41 4d 45 20 61 6e 64 20 | 56 49 53 49 54 2c 20 74 |AME and |VISIT, t|
|00001ff0| 68 65 20 73 61 6d 65 20 | 61 73 20 74 68 65 0a 63 |he same |as the.c|
|00002000| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 61 72 67 |orrespon|ding arg|
|00002010| 75 6d 65 6e 74 73 20 69 | 6e 20 74 68 65 20 63 61 |uments i|n the ca|
|00002020| 6c 6c 20 74 6f 20 60 69 | 6e 73 65 72 74 2d 66 69 |ll to `i|nsert-fi|
|00002030| 6c 65 2d 63 6f 6e 74 65 | 6e 74 73 27 2e 20 20 49 |le-conte|nts'. I|
|00002040| 6e 0a 74 68 65 73 65 20 | 66 75 6e 63 74 69 6f 6e |n.these |function|
|00002050| 73 2c 20 79 6f 75 20 6d | 61 79 20 72 65 66 65 72 |s, you m|ay refer|
|00002060| 20 74 6f 20 74 68 65 20 | 67 6c 6f 62 61 6c 20 76 | to the |global v|
|00002070| 61 72 69 61 62 6c 65 0a | 60 62 75 66 66 65 72 2d |ariable.|`buffer-|
|00002080| 66 69 6c 65 2d 63 6f 64 | 69 6e 67 2d 73 79 73 74 |file-cod|ing-syst|
|00002090| 65 6d 2d 66 6f 72 2d 72 | 65 61 64 27 2e 0a 0a 54 |em-for-r|ead'...T|
|000020a0| 68 65 20 72 65 74 75 72 | 6e 20 76 61 6c 75 65 20 |he retur|n value |
|000020b0| 6f 66 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 73 |of the f|unctions|
|000020c0| 20 73 68 6f 75 6c 64 20 | 62 65 20 65 69 74 68 65 | should |be eithe|
|000020d0| 72 0a 0a 2d 2d 20 6e 69 | 6c 0a 2d 2d 20 41 20 63 |r..-- ni|l.-- A c|
|000020e0| 6f 64 69 6e 67 20 73 79 | 73 74 65 6d 20 6f 72 20 |oding sy|stem or |
|000020f0| 61 20 73 79 6d 62 6f 6c | 20 64 65 6e 6f 74 69 6e |a symbol| denotin|
|00002100| 67 20 69 74 2c 20 69 6e | 64 69 63 61 74 69 6e 67 |g it, in|dicating|
|00002110| 20 74 68 65 20 63 6f 64 | 69 6e 67 20 73 79 73 74 | the cod|ing syst|
|00002120| 65 6d 0a 20 20 20 74 6f | 20 62 65 20 75 73 65 64 |em. to| be used|
|00002130| 20 66 6f 72 20 72 65 61 | 64 69 6e 67 20 74 68 65 | for rea|ding the|
|00002140| 20 66 69 6c 65 0a 2d 2d | 20 41 20 6c 69 73 74 20 | file.--| A list |
|00002150| 6f 66 20 74 77 6f 20 65 | 6c 65 6d 65 6e 74 73 20 |of two e|lements |
|00002160| 28 61 62 73 6f 6c 75 74 | 65 20 70 61 74 68 6e 61 |(absolut|e pathna|
|00002170| 6d 65 20 61 6e 64 20 6c | 65 6e 67 74 68 20 6f 66 |me and l|ength of|
|00002180| 20 64 61 74 61 20 69 6e | 73 65 72 74 65 64 29 2c | data in|serted),|
|00002190| 0a 20 20 20 77 68 69 63 | 68 20 69 73 20 75 73 65 |. whic|h is use|
|000021a0| 64 20 61 73 20 74 68 65 | 20 72 65 74 75 72 6e 20 |d as the| return |
|000021b0| 76 61 6c 75 65 20 74 6f | 20 60 69 6e 73 65 72 74 |value to| `insert|
|000021c0| 2d 66 69 6c 65 2d 63 6f | 6e 74 65 6e 74 73 27 2e |-file-co|ntents'.|
|000021d0| 20 20 49 6e 20 74 68 69 | 73 0a 20 20 20 63 61 73 | In thi|s. cas|
|000021e0| 65 2c 20 60 69 6e 73 65 | 72 74 2d 66 69 6c 65 2d |e, `inse|rt-file-|
|000021f0| 63 6f 6e 74 65 6e 74 73 | 27 20 61 73 73 75 6d 65 |contents|' assume|
|00002200| 73 20 74 68 61 74 20 74 | 68 65 20 66 75 6e 63 74 |s that t|he funct|
|00002210| 69 6f 6e 20 68 61 73 20 | 69 6e 73 65 72 74 65 64 |ion has |inserted|
|00002220| 0a 20 20 20 74 68 65 20 | 66 69 6c 65 20 66 6f 72 |. the |file for|
|00002230| 20 69 74 73 65 6c 66 20 | 61 6e 64 20 73 75 70 70 | itself |and supp|
|00002240| 72 65 73 73 65 73 20 66 | 75 72 74 68 65 72 20 72 |resses f|urther r|
|00002250| 65 61 64 69 6e 67 2e 0a | 0a 49 66 20 61 6e 79 20 |eading..|.If any |
|00002260| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00002270| 20 6e 6f 6e 2d 6e 69 6c | 2c 20 74 68 65 20 72 65 | non-nil|, the re|
|00002280| 6d 61 69 6e 69 6e 67 20 | 66 75 6e 63 74 69 6f 6e |maining |function|
|00002290| 73 20 61 72 65 20 6e 6f | 74 20 63 61 6c 6c 65 64 |s are no|t called|
|000022a0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 69 6e 73 65 72 |...(defv|ar inser|
|000022b0| 74 2d 66 69 6c 65 2d 63 | 6f 6e 74 65 6e 74 73 2d |t-file-c|ontents-|
|000022c0| 70 72 65 2d 68 6f 6f 6b | 20 6e 69 6c 20 28 23 24 |pre-hook| nil (#$|
|000022d0| 20 2e 20 37 39 38 39 29 | 29 0a 23 40 34 38 33 20 | . 7989)|).#@483 |
|000022e0| 41 20 68 6f 6f 6b 20 74 | 6f 20 73 65 74 20 60 62 |A hook t|o set `b|
|000022f0| 75 66 66 65 72 2d 66 69 | 6c 65 2d 63 6f 64 69 6e |uffer-fi|le-codin|
|00002300| 67 2d 73 79 73 74 65 6d | 27 20 77 68 65 6e 20 61 |g-system|' when a|
|00002310| 20 72 65 61 64 20 65 72 | 72 6f 72 20 68 61 73 20 | read er|ror has |
|00002320| 6f 63 63 75 72 72 65 64 | 2e 0a 0a 57 68 65 6e 20 |occurred|...When |
|00002330| 61 20 66 69 6c 65 20 65 | 72 72 6f 72 20 28 65 2e |a file e|rror (e.|
|00002340| 67 2e 20 6e 6f 6e 65 78 | 69 73 74 65 6e 74 20 66 |g. nonex|istent f|
|00002350| 69 6c 65 29 20 6f 63 63 | 75 72 73 20 77 68 69 6c |ile) occ|urs whil|
|00002360| 65 20 72 65 61 64 20 61 | 20 66 69 6c 65 2c 0a 60 |e read a| file,.`|
|00002370| 69 6e 73 65 72 74 2d 66 | 69 6c 65 2d 63 6f 6e 74 |insert-f|ile-cont|
|00002380| 65 6e 74 73 27 20 63 61 | 6c 6c 73 20 74 68 65 20 |ents' ca|lls the |
|00002390| 66 75 6e 63 74 69 6f 6e | 73 20 6f 6e 20 74 68 69 |function|s on thi|
|000023a0| 73 20 68 6f 6f 6b 20 77 | 69 74 68 20 74 68 72 65 |s hook w|ith thre|
|000023b0| 65 0a 61 72 67 75 6d 65 | 6e 74 73 3a 20 46 49 4c |e.argume|nts: FIL|
|000023c0| 45 4e 41 4d 45 20 61 6e | 64 20 56 49 53 49 54 20 |ENAME an|d VISIT |
|000023d0| 28 74 68 65 20 73 61 6d | 65 20 61 73 20 74 68 65 |(the sam|e as the|
|000023e0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 61 | corresp|onding a|
|000023f0| 72 67 75 6d 65 6e 74 73 | 0a 69 6e 20 74 68 65 20 |rguments|.in the |
|00002400| 63 61 6c 6c 20 74 6f 20 | 60 69 6e 73 65 72 74 2d |call to |`insert-|
|00002410| 66 69 6c 65 2d 63 6f 6e | 74 65 6e 74 73 27 29 20 |file-con|tents') |
|00002420| 61 6e 64 20 61 20 63 6f | 6e 73 20 28 53 49 47 4e |and a co|ns (SIGN|
|00002430| 41 4c 45 44 2d 43 4f 4e | 44 49 54 49 4f 4e 53 0a |ALED-CON|DITIONS.|
|00002440| 2e 20 53 49 47 4e 41 4c | 2d 44 41 54 41 29 2e 0a |. SIGNAL|-DATA)..|
|00002450| 0a 41 66 74 65 72 20 63 | 61 6c 6c 69 6e 67 20 74 |.After c|alling t|
|00002460| 68 69 73 20 68 6f 6f 6b | 2c 20 74 68 65 20 65 72 |his hook|, the er|
|00002470| 72 6f 72 20 69 73 20 73 | 69 67 6e 61 6c 6c 65 64 |ror is s|ignalled|
|00002480| 20 66 6f 72 20 72 65 61 | 6c 20 61 6e 64 0a 70 72 | for rea|l and.pr|
|00002490| 6f 70 61 67 61 74 65 73 | 20 74 6f 20 74 68 65 20 |opagates| to the |
|000024a0| 63 61 6c 6c 65 72 20 6f | 66 20 60 69 6e 73 65 72 |caller o|f `inser|
|000024b0| 74 2d 66 69 6c 65 2d 63 | 6f 6e 74 65 6e 74 73 27 |t-file-c|ontents'|
|000024c0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 69 6e 73 65 72 |...(defv|ar inser|
|000024d0| 74 2d 66 69 6c 65 2d 63 | 6f 6e 74 65 6e 74 73 2d |t-file-c|ontents-|
|000024e0| 65 72 72 6f 72 2d 68 6f | 6f 6b 20 6e 69 6c 20 28 |error-ho|ok nil (|
|000024f0| 23 24 20 2e 20 38 39 32 | 38 29 29 0a 23 40 34 36 |#$ . 892|8)).#@46|
|00002500| 33 20 41 20 68 6f 6f 6b | 20 74 6f 20 73 65 74 20 |3 A hook| to set |
|00002510| 60 62 75 66 66 65 72 2d | 66 69 6c 65 2d 63 6f 64 |`buffer-|file-cod|
|00002520| 69 6e 67 2d 73 79 73 74 | 65 6d 27 20 66 6f 72 20 |ing-syst|em' for |
|00002530| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |the curr|ent buff|
|00002540| 65 72 2e 0a 0a 41 66 74 | 65 72 20 73 75 63 63 65 |er...Aft|er succe|
|00002550| 73 73 66 75 6c 20 72 65 | 61 64 69 6e 67 2c 20 60 |ssful re|ading, `|
|00002560| 69 6e 73 65 72 74 2d 66 | 69 6c 65 2d 63 6f 6e 74 |insert-f|ile-cont|
|00002570| 65 6e 74 73 27 20 63 61 | 6c 6c 73 20 74 68 65 20 |ents' ca|lls the |
|00002580| 66 75 6e 63 74 69 6f 6e | 73 0a 6f 6e 20 74 68 69 |function|s.on thi|
|00002590| 73 20 68 6f 6f 6b 20 77 | 69 74 68 20 66 6f 75 72 |s hook w|ith four|
|000025a0| 20 61 72 67 75 6d 65 6e | 74 73 3a 20 46 49 4c 45 | argumen|ts: FILE|
|000025b0| 4e 41 4d 45 20 61 6e 64 | 20 56 49 53 49 54 20 28 |NAME and| VISIT (|
|000025c0| 74 68 65 20 73 61 6d 65 | 20 61 73 20 74 68 65 0a |the same| as the.|
|000025d0| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 61 72 |correspo|nding ar|
|000025e0| 67 75 6d 65 6e 74 73 20 | 69 6e 20 74 68 65 20 63 |guments |in the c|
|000025f0| 61 6c 6c 20 74 6f 20 60 | 69 6e 73 65 72 74 2d 66 |all to `|insert-f|
|00002600| 69 6c 65 2d 63 6f 6e 74 | 65 6e 74 73 27 29 2c 0a |ile-cont|ents'),.|
|00002610| 43 4f 44 49 4e 47 2d 53 | 59 53 54 45 4d 20 28 74 |CODING-S|YSTEM (t|
|00002620| 68 65 20 61 63 74 75 61 | 6c 20 63 6f 64 69 6e 67 |he actua|l coding|
|00002630| 20 73 79 73 74 65 6d 20 | 75 73 65 64 20 74 6f 20 | system |used to |
|00002640| 64 65 63 6f 64 65 20 74 | 68 65 20 66 69 6c 65 29 |decode t|he file)|
|00002650| 2c 20 61 6e 64 0a 61 20 | 63 6f 6e 73 20 6f 66 20 |, and.a |cons of |
|00002660| 61 62 73 6f 6c 75 74 65 | 20 70 61 74 68 6e 61 6d |absolute| pathnam|
|00002670| 65 20 61 6e 64 20 6c 65 | 6e 67 74 68 20 6f 66 20 |e and le|ngth of |
|00002680| 64 61 74 61 20 69 6e 73 | 65 72 74 65 64 20 28 74 |data ins|erted (t|
|00002690| 68 65 20 73 61 6d 65 0a | 74 68 69 6e 67 20 61 73 |he same.|thing as|
|000026a0| 20 77 69 6c 6c 20 62 65 | 20 72 65 74 75 72 6e 65 | will be| returne|
|000026b0| 64 20 66 72 6f 6d 20 60 | 69 6e 73 65 72 74 2d 66 |d from `|insert-f|
|000026c0| 69 6c 65 2d 63 6f 6e 74 | 65 6e 74 73 27 29 2e 1f |ile-cont|ents')..|
|000026d0| 0a 28 64 65 66 76 61 72 | 20 69 6e 73 65 72 74 2d |.(defvar| insert-|
|000026e0| 66 69 6c 65 2d 63 6f 6e | 74 65 6e 74 73 2d 70 6f |file-con|tents-po|
|000026f0| 73 74 2d 68 6f 6f 6b 20 | 6e 69 6c 20 28 23 24 20 |st-hook |nil (#$ |
|00002700| 2e 20 39 34 37 34 29 29 | 0a 23 40 31 35 31 39 20 |. 9474))|.#@1519 |
|00002710| 49 6e 73 65 72 74 20 63 | 6f 6e 74 65 6e 74 73 20 |Insert c|ontents |
|00002720| 6f 66 20 66 69 6c 65 20 | 46 49 4c 45 4e 41 4d 45 |of file |FILENAME|
|00002730| 20 61 66 74 65 72 20 70 | 6f 69 6e 74 2e 0a 52 65 | after p|oint..Re|
|00002740| 74 75 72 6e 73 20 6c 69 | 73 74 20 6f 66 20 61 62 |turns li|st of ab|
|00002750| 73 6f 6c 75 74 65 20 66 | 69 6c 65 20 6e 61 6d 65 |solute f|ile name|
|00002760| 20 61 6e 64 20 6c 65 6e | 67 74 68 20 6f 66 20 64 | and len|gth of d|
|00002770| 61 74 61 20 69 6e 73 65 | 72 74 65 64 2e 0a 49 66 |ata inse|rted..If|
|00002780| 20 73 65 63 6f 6e 64 20 | 61 72 67 75 6d 65 6e 74 | second |argument|
|00002790| 20 56 49 53 49 54 20 69 | 73 20 6e 6f 6e 2d 6e 69 | VISIT i|s non-ni|
|000027a0| 6c 2c 20 74 68 65 20 62 | 75 66 66 65 72 27 73 20 |l, the b|uffer's |
|000027b0| 76 69 73 69 74 65 64 20 | 66 69 6c 65 6e 61 6d 65 |visited |filename|
|000027c0| 0a 61 6e 64 20 6c 61 73 | 74 20 73 61 76 65 20 66 |.and las|t save f|
|000027d0| 69 6c 65 20 6d 6f 64 74 | 69 6d 65 20 61 72 65 20 |ile modt|ime are |
|000027e0| 73 65 74 2c 20 61 6e 64 | 20 69 74 20 69 73 20 6d |set, and| it is m|
|000027f0| 61 72 6b 65 64 20 75 6e | 6d 6f 64 69 66 69 65 64 |arked un|modified|
|00002800| 2e 0a 49 66 20 76 69 73 | 69 74 69 6e 67 20 61 6e |..If vis|iting an|
|00002810| 64 20 74 68 65 20 66 69 | 6c 65 20 64 6f 65 73 20 |d the fi|le does |
|00002820| 6e 6f 74 20 65 78 69 73 | 74 2c 20 76 69 73 69 74 |not exis|t, visit|
|00002830| 69 6e 67 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 64 |ing is c|ompleted|
|00002840| 0a 62 65 66 6f 72 65 20 | 74 68 65 20 65 72 72 6f |.before |the erro|
|00002850| 72 20 69 73 20 73 69 67 | 6e 61 6c 65 64 2e 0a 0a |r is sig|naled...|
|00002860| 54 68 65 20 6f 70 74 69 | 6f 6e 61 6c 20 74 68 69 |The opti|onal thi|
|00002870| 72 64 20 61 6e 64 20 66 | 6f 75 72 74 68 20 61 72 |rd and f|ourth ar|
|00002880| 67 75 6d 65 6e 74 73 20 | 42 45 47 20 61 6e 64 20 |guments |BEG and |
|00002890| 45 4e 44 0a 73 70 65 63 | 69 66 79 20 77 68 61 74 |END.spec|ify what|
|000028a0| 20 70 6f 72 74 69 6f 6e | 20 6f 66 20 74 68 65 20 | portion| of the |
|000028b0| 66 69 6c 65 20 74 6f 20 | 69 6e 73 65 72 74 2e 0a |file to |insert..|
|000028c0| 49 66 20 56 49 53 49 54 | 20 69 73 20 6e 6f 6e 2d |If VISIT| is non-|
|000028d0| 6e 69 6c 2c 20 42 45 47 | 20 61 6e 64 20 45 4e 44 |nil, BEG| and END|
|000028e0| 20 6d 75 73 74 20 62 65 | 20 6e 69 6c 2e 0a 49 66 | must be| nil..If|
|000028f0| 20 6f 70 74 69 6f 6e 61 | 6c 20 66 69 66 74 68 20 | optiona|l fifth |
|00002900| 61 72 67 75 6d 65 6e 74 | 20 52 45 50 4c 41 43 45 |argument| REPLACE|
|00002910| 20 69 73 20 6e 6f 6e 2d | 6e 69 6c 2c 0a 69 74 20 | is non-|nil,.it |
|00002920| 6d 65 61 6e 73 20 72 65 | 70 6c 61 63 65 20 74 68 |means re|place th|
|00002930| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00002940| 20 63 6f 6e 74 65 6e 74 | 73 20 28 69 6e 20 74 68 | content|s (in th|
|00002950| 65 20 61 63 63 65 73 73 | 69 62 6c 65 20 70 6f 72 |e access|ible por|
|00002960| 74 69 6f 6e 29 0a 77 69 | 74 68 20 74 68 65 20 66 |tion).wi|th the f|
|00002970| 69 6c 65 20 63 6f 6e 74 | 65 6e 74 73 2e 20 20 54 |ile cont|ents. T|
|00002980| 68 69 73 20 69 73 20 62 | 65 74 74 65 72 20 74 68 |his is b|etter th|
|00002990| 61 6e 20 73 69 6d 70 6c | 79 20 64 65 6c 65 74 69 |an simpl|y deleti|
|000029a0| 6e 67 20 61 6e 64 20 69 | 6e 73 65 72 74 69 6e 67 |ng and i|nserting|
|000029b0| 0a 74 68 65 20 77 68 6f | 6c 65 20 74 68 69 6e 67 |.the who|le thing|
|000029c0| 20 62 65 63 61 75 73 65 | 20 28 31 29 20 69 74 20 | because| (1) it |
|000029d0| 70 72 65 73 65 72 76 65 | 73 20 73 6f 6d 65 20 6d |preserve|s some m|
|000029e0| 61 72 6b 65 72 20 70 6f | 73 69 74 69 6f 6e 73 0a |arker po|sitions.|
|000029f0| 61 6e 64 20 28 32 29 20 | 69 74 20 70 75 74 73 20 |and (2) |it puts |
|00002a00| 6c 65 73 73 20 64 61 74 | 61 20 69 6e 20 74 68 65 |less dat|a in the|
|00002a10| 20 75 6e 64 6f 20 6c 69 | 73 74 2e 0a 0a 4e 4f 54 | undo li|st...NOT|
|00002a20| 45 3a 20 57 68 65 6e 20 | 4d 75 6c 65 20 73 75 70 |E: When |Mule sup|
|00002a30| 70 6f 72 74 20 69 73 20 | 65 6e 61 62 6c 65 64 2c |port is |enabled,|
|00002a40| 20 74 68 65 20 52 45 50 | 4c 41 43 45 20 61 72 67 | the REP|LACE arg|
|00002a50| 75 6d 65 6e 74 20 69 73 | 0a 63 75 72 72 65 6e 74 |ument is|.current|
|00002a60| 6c 79 20 69 67 6e 6f 72 | 65 64 2e 0a 0a 54 68 65 |ly ignor|ed...The|
|00002a70| 20 63 6f 64 69 6e 67 20 | 73 79 73 74 65 6d 20 75 | coding |system u|
|00002a80| 73 65 64 20 66 6f 72 20 | 64 65 63 6f 64 69 6e 67 |sed for |decoding|
|00002a90| 20 74 68 65 20 66 69 6c | 65 20 69 73 20 64 65 74 | the fil|e is det|
|00002aa0| 65 72 6d 69 6e 65 64 20 | 61 73 20 66 6f 6c 6c 6f |ermined |as follo|
|00002ab0| 77 73 3a 0a 0a 31 2e 20 | 60 63 6f 64 69 6e 67 2d |ws:..1. |`coding-|
|00002ac0| 73 79 73 74 65 6d 2d 66 | 6f 72 2d 72 65 61 64 27 |system-f|or-read'|
|00002ad0| 2c 20 69 66 20 6e 6f 6e | 2d 6e 69 6c 2e 0a 32 2e |, if non|-nil..2.|
|00002ae0| 20 54 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 60 | The res|ult of `|
|00002af0| 69 6e 73 65 72 74 2d 66 | 69 6c 65 2d 63 6f 6e 74 |insert-f|ile-cont|
|00002b00| 65 6e 74 73 2d 70 72 65 | 2d 68 6f 6f 6b 27 2c 20 |ents-pre|-hook', |
|00002b10| 69 66 20 6e 6f 6e 2d 6e | 69 6c 2e 0a 33 2e 20 54 |if non-n|il..3. T|
|00002b20| 68 65 20 6d 61 74 63 68 | 69 6e 67 20 76 61 6c 75 |he match|ing valu|
|00002b30| 65 20 66 6f 72 20 74 68 | 69 73 20 66 69 6c 65 6e |e for th|is filen|
|00002b40| 61 6d 65 20 66 72 6f 6d | 0a 20 20 20 60 66 69 6c |ame from|. `fil|
|00002b50| 65 2d 63 6f 64 69 6e 67 | 2d 73 79 73 74 65 6d 2d |e-coding|-system-|
|00002b60| 61 6c 69 73 74 27 2c 20 | 69 66 20 61 6e 79 2e 0a |alist', |if any..|
|00002b70| 34 2e 20 60 62 75 66 66 | 65 72 2d 66 69 6c 65 2d |4. `buff|er-file-|
|00002b80| 63 6f 64 69 6e 67 2d 73 | 79 73 74 65 6d 2d 66 6f |coding-s|ystem-fo|
|00002b90| 72 2d 72 65 61 64 27 2c | 20 69 66 20 6e 6f 6e 2d |r-read',| if non-|
|00002ba0| 6e 69 6c 2e 0a 35 2e 20 | 54 68 65 20 63 6f 64 69 |nil..5. |The codi|
|00002bb0| 6e 67 20 73 79 73 74 65 | 6d 20 27 6e 6f 2d 63 6f |ng syste|m 'no-co|
|00002bc0| 6e 76 65 72 73 69 6f 6e | 2e 0a 0a 49 66 20 61 20 |nversion|...If a |
|00002bd0| 6c 6f 63 61 6c 20 76 61 | 6c 75 65 20 66 6f 72 20 |local va|lue for |
|00002be0| 60 62 75 66 66 65 72 2d | 66 69 6c 65 2d 63 6f 64 |`buffer-|file-cod|
|00002bf0| 69 6e 67 2d 73 79 73 74 | 65 6d 27 20 69 6e 20 74 |ing-syst|em' in t|
|00002c00| 68 65 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |he curre|nt buffe|
|00002c10| 72 0a 64 6f 65 73 20 6e | 6f 74 20 65 78 69 73 74 |r.does n|ot exist|
|00002c20| 2c 20 69 74 20 69 73 20 | 73 65 74 20 74 6f 20 74 |, it is |set to t|
|00002c30| 68 65 20 63 6f 64 69 6e | 67 20 73 79 73 74 65 6d |he codin|g system|
|00002c40| 20 77 68 69 63 68 20 77 | 61 73 20 61 63 74 75 61 | which w|as actua|
|00002c50| 6c 6c 79 20 75 73 65 64 | 0a 66 6f 72 20 72 65 61 |lly used|.for rea|
|00002c60| 64 69 6e 67 2e 0a 0a 53 | 65 65 20 61 6c 73 6f 20 |ding...S|ee also |
|00002c70| 60 69 6e 73 65 72 74 2d | 66 69 6c 65 2d 63 6f 6e |`insert-|file-con|
|00002c80| 74 65 6e 74 73 2d 61 63 | 63 65 73 73 2d 68 6f 6f |tents-ac|cess-hoo|
|00002c90| 6b 27 2c 0a 60 69 6e 73 | 65 72 74 2d 66 69 6c 65 |k',.`ins|ert-file|
|00002ca0| 2d 63 6f 6e 74 65 6e 74 | 73 2d 70 72 65 2d 68 6f |-content|s-pre-ho|
|00002cb0| 6f 6b 27 2c 20 60 69 6e | 73 65 72 74 2d 66 69 6c |ok', `in|sert-fil|
|00002cc0| 65 2d 63 6f 6e 74 65 6e | 74 73 2d 65 72 72 6f 72 |e-conten|ts-error|
|00002cd0| 2d 68 6f 6f 6b 27 2c 0a | 61 6e 64 20 60 69 6e 73 |-hook',.|and `ins|
|00002ce0| 65 72 74 2d 66 69 6c 65 | 2d 63 6f 6e 74 65 6e 74 |ert-file|-content|
|00002cf0| 73 2d 70 6f 73 74 2d 68 | 6f 6f 6b 27 2e 1f 0a 28 |s-post-h|ook'...(|
|00002d00| 64 65 66 61 6c 69 61 73 | 20 27 69 6e 73 65 72 74 |defalias| 'insert|
|00002d10| 2d 66 69 6c 65 2d 63 6f | 6e 74 65 6e 74 73 20 23 |-file-co|ntents #|
|00002d20| 5b 28 66 69 6c 65 6e 61 | 6d 65 20 26 6f 70 74 69 |[(filena|me &opti|
|00002d30| 6f 6e 61 6c 20 76 69 73 | 69 74 20 62 65 67 20 65 |onal vis|it beg e|
|00002d40| 6e 64 20 72 65 70 6c 61 | 63 65 29 20 22 c0 89 89 |nd repla|ce) "...|
|00002d50| 89 19 1a 1b 1c c5 c6 c7 | 8f 88 5c 6e 13 c8 0b c9 |........|..\n....|
|00002d60| 5c 22 ca 20 1e 0b 1e 0c | 0e 0b 60 0c 41 40 5c 5c |\". ....|..`.A@\\|
|00002d70| c0 93 88 0e 0c ab 90 cd | 8e 8a c0 1e 0e 0e 0c 60 |........|.......`|
|00002d80| cf 0e 0b 21 5c 22 88 2b | 0c 41 cf 0e 0b 21 60 5a |...!\".+|.A...!`Z|
|00002d90| a0 88 2a d0 d1 0e 12 0e | 13 0c 24 ac 96 d4 d5 70 |..*.....|..$....p|
|00002da0| 5c 22 ab 8c d6 d7 0e 15 | d8 0b 21 5c 22 21 88 aa |\"......|..!\"!..|
|00002db0| 84 d6 0b 21 88 0c 2c 87 | 22 20 5b 6e 69 6c 20 63 |...!..,.|" [nil c|
|00002dc0| 6f 6e 76 65 72 73 69 6f | 6e 2d 66 75 6e 63 20 75 |onversio|n-func u|
|00002dd0| 73 65 64 2d 63 6f 64 65 | 73 79 73 20 63 6f 64 69 |sed-code|sys codi|
|00002de0| 6e 67 2d 73 79 73 74 65 | 6d 20 72 65 74 75 72 6e |ng-syste|m return|
|00002df0| 2d 76 61 6c 20 65 72 72 | 20 28 62 79 74 65 2d 63 |-val err| (byte-c|
|00002e00| 6f 64 65 20 22 c0 c1 5c | 6e 0b 23 88 0c ae 91 c5 |ode "..\|n.#.....|
|00002e10| c6 5c 6e 0b 23 ae 8a c7 | 5c 6e 21 ae 85 0e 08 ae |.\n.#...|\n!.....|
|00002e20| 81 c9 89 16 5c 6e 3a ab | 86 0e 5c 6e 16 0b aa 9f |....\n:.|..\n....|
|00002e30| cc 0e 5c 6e 21 ac 89 cd | ce 0e 5c 6e 5c 22 88 cf |..\n!...|..\n\"..|
|00002e40| 16 5c 6e d0 5c 6e 0b 0e | 11 0e 12 0e 13 0e 5c 6e |.\n.\n..|......\n|
|00002e50| d4 26 07 16 0b c0 87 22 | 20 5b 72 75 6e 2d 68 6f |.&....."| [run-ho|
|00002e60| 6f 6b 2d 77 69 74 68 2d | 61 72 67 73 20 69 6e 73 |ok-with-|args ins|
|00002e70| 65 72 74 2d 66 69 6c 65 | 2d 63 6f 6e 74 65 6e 74 |ert-file|-content|
|00002e80| 73 2d 61 63 63 65 73 73 | 2d 68 6f 6f 6b 20 66 69 |s-access|-hook fi|
|00002e90| 6c 65 6e 61 6d 65 20 76 | 69 73 69 74 20 63 6f 64 |lename v|isit cod|
|00002ea0| 69 6e 67 2d 73 79 73 74 | 65 6d 2d 66 6f 72 2d 72 |ing-syst|em-for-r|
|00002eb0| 65 61 64 20 72 75 6e 2d | 73 70 65 63 69 61 6c 2d |ead run-|special-|
|00002ec0| 68 6f 6f 6b 2d 77 69 74 | 68 2d 61 72 67 73 20 69 |hook-wit|h-args i|
|00002ed0| 6e 73 65 72 74 2d 66 69 | 6c 65 2d 63 6f 6e 74 65 |nsert-fi|le-conte|
|00002ee0| 6e 74 73 2d 70 72 65 2d | 68 6f 6f 6b 20 66 69 6e |nts-pre-|hook fin|
|00002ef0| 64 2d 66 69 6c 65 2d 63 | 6f 64 69 6e 67 2d 73 79 |d-file-c|oding-sy|
|00002f00| 73 74 65 6d 2d 66 6f 72 | 2d 72 65 61 64 2d 66 72 |stem-for|-read-fr|
|00002f10| 6f 6d 2d 66 69 6c 65 6e | 61 6d 65 20 62 75 66 66 |om-filen|ame buff|
|00002f20| 65 72 2d 66 69 6c 65 2d | 63 6f 64 69 6e 67 2d 73 |er-file-|coding-s|
|00002f30| 79 73 74 65 6d 2d 66 6f | 72 2d 72 65 61 64 20 6e |ystem-fo|r-read n|
|00002f40| 6f 2d 63 6f 6e 76 65 72 | 73 69 6f 6e 20 63 6f 64 |o-conver|sion cod|
|00002f50| 69 6e 67 2d 73 79 73 74 | 65 6d 20 72 65 74 75 72 |ing-syst|em retur|
|00002f60| 6e 2d 76 61 6c 20 66 69 | 6e 64 2d 63 6f 64 69 6e |n-val fi|nd-codin|
|00002f70| 67 2d 73 79 73 74 65 6d | 20 6d 65 73 73 61 67 65 |g-system| message|
|00002f80| 20 22 49 6e 76 61 6c 69 | 64 20 63 6f 64 69 6e 67 | "Invali|d coding|
|00002f90| 2d 73 79 73 74 65 6d 20 | 28 25 73 29 2c 20 75 73 |-system |(%s), us|
|00002fa0| 69 6e 67 20 27 75 6e 64 | 65 63 69 64 65 64 22 20 |ing 'und|ecided" |
|00002fb0| 75 6e 64 65 63 69 64 65 | 64 20 69 6e 73 65 72 74 |undecide|d insert|
|00002fc0| 2d 66 69 6c 65 2d 63 6f | 6e 74 65 6e 74 73 2d 69 |-file-co|ntents-i|
|00002fd0| 6e 74 65 72 6e 61 6c 20 | 62 65 67 20 65 6e 64 20 |nternal |beg end |
|00002fe0| 72 65 70 6c 61 63 65 20 | 75 73 65 64 2d 63 6f 64 |replace |used-cod|
|00002ff0| 65 73 79 73 5d 20 39 29 | 20 28 28 66 69 6c 65 2d |esys] 9)| ((file-|
|00003000| 65 72 72 6f 72 20 28 62 | 79 74 65 2d 63 6f 64 65 |error (b|yte-code|
|00003010| 20 22 c0 c1 5c 6e 0b 0c | 24 88 c5 0c 40 0c 41 5c | "..\n..|$...@.A\|
|00003020| 22 87 22 20 5b 72 75 6e | 2d 68 6f 6f 6b 2d 77 69 |"." [run|-hook-wi|
|00003030| 74 68 2d 61 72 67 73 20 | 69 6e 73 65 72 74 2d 66 |th-args |insert-f|
|00003040| 69 6c 65 2d 63 6f 6e 74 | 65 6e 74 73 2d 65 72 72 |ile-cont|ents-err|
|00003050| 6f 72 2d 68 6f 6f 6b 20 | 66 69 6c 65 6e 61 6d 65 |or-hook |filename|
|00003060| 20 76 69 73 69 74 20 65 | 72 72 20 73 69 67 6e 61 | visit e|rr signa|
|00003070| 6c 5d 20 35 29 29 29 20 | 63 6f 64 69 6e 67 2d 73 |l] 5))) |coding-s|
|00003080| 79 73 74 65 6d 2d 70 72 | 6f 70 65 72 74 79 20 70 |ystem-pr|operty p|
|00003090| 6f 73 74 2d 72 65 61 64 | 2d 63 6f 6e 76 65 72 73 |ost-read|-convers|
|000030a0| 69 6f 6e 20 6d 61 6b 65 | 2d 6d 61 72 6b 65 72 20 |ion make|-marker |
|000030b0| 65 6e 64 6d 61 72 6b 20 | 66 75 6e 63 20 28 28 62 |endmark |func ((b|
|000030c0| 79 74 65 2d 63 6f 64 65 | 20 22 08 ab 87 c1 20 88 |yte-code| ".... .|
|000030d0| c2 c3 21 88 c3 87 22 20 | 5b 76 69 73 69 74 20 73 |..!..." |[visit s|
|000030e0| 65 74 2d 62 75 66 66 65 | 72 2d 61 75 74 6f 2d 73 |et-buffe|r-auto-s|
|000030f0| 61 76 65 64 20 73 65 74 | 2d 62 75 66 66 65 72 2d |aved set|-buffer-|
|00003100| 6d 6f 64 69 66 69 65 64 | 2d 70 20 6e 69 6c 5d 20 |modified|-p nil] |
|00003110| 32 29 29 20 62 75 66 66 | 65 72 2d 72 65 61 64 2d |2)) buff|er-read-|
|00003120| 6f 6e 6c 79 20 6d 61 72 | 6b 65 72 2d 70 6f 73 69 |only mar|ker-posi|
|00003130| 74 69 6f 6e 20 72 75 6e | 2d 73 70 65 63 69 61 6c |tion run|-special|
|00003140| 2d 68 6f 6f 6b 2d 77 69 | 74 68 2d 61 72 67 73 20 |-hook-wi|th-args |
|00003150| 69 6e 73 65 72 74 2d 66 | 69 6c 65 2d 63 6f 6e 74 |insert-f|ile-cont|
|00003160| 65 6e 74 73 2d 70 6f 73 | 74 2d 68 6f 6f 6b 20 66 |ents-pos|t-hook f|
|00003170| 69 6c 65 6e 61 6d 65 20 | 76 69 73 69 74 20 6c 6f |ilename |visit lo|
|00003180| 63 61 6c 2d 76 61 72 69 | 61 62 6c 65 2d 70 20 62 |cal-vari|able-p b|
|00003190| 75 66 66 65 72 2d 66 69 | 6c 65 2d 63 6f 64 69 6e |uffer-fi|le-codin|
|000031a0| 67 2d 73 79 73 74 65 6d | 20 73 65 74 2d 62 75 66 |g-system| set-buf|
|000031b0| 66 65 72 2d 66 69 6c 65 | 2d 63 6f 64 69 6e 67 2d |fer-file|-coding-|
|000031c0| 73 79 73 74 65 6d 20 73 | 75 62 73 69 64 69 61 72 |system s|ubsidiar|
|000031d0| 79 2d 63 6f 64 69 6e 67 | 2d 73 79 73 74 65 6d 20 |y-coding|-system |
|000031e0| 63 6f 64 69 6e 67 2d 73 | 79 73 74 65 6d 2d 65 6f |coding-s|ystem-eo|
|000031f0| 6c 2d 74 79 70 65 5d 20 | 35 20 28 23 24 20 2e 20 |l-type] |5 (#$ . |
|00003200| 31 30 30 30 30 29 5d 29 | 0a 23 40 37 38 35 20 41 |10000)])|.#@785 A|
|00003210| 20 73 70 65 63 69 61 6c | 20 68 6f 6f 6b 20 74 6f | special| hook to|
|00003220| 20 64 65 63 69 64 65 20 | 74 68 65 20 63 6f 64 69 | decide |the codi|
|00003230| 6e 67 20 73 79 73 74 65 | 6d 20 75 73 65 64 20 66 |ng syste|m used f|
|00003240| 6f 72 20 77 72 69 74 69 | 6e 67 20 6f 75 74 20 61 |or writi|ng out a|
|00003250| 20 66 69 6c 65 2e 0a 0a | 42 65 66 6f 72 65 20 77 | file...|Before w|
|00003260| 72 69 74 69 6e 67 20 61 | 20 66 69 6c 65 2c 20 60 |riting a| file, `|
|00003270| 77 72 69 74 65 2d 72 65 | 67 69 6f 6e 27 20 63 61 |write-re|gion' ca|
|00003280| 6c 6c 73 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |lls the |function|
|00003290| 73 20 6f 6e 20 74 68 69 | 73 20 68 6f 6f 6b 0a 77 |s on thi|s hook.w|
|000032a0| 69 74 68 20 61 72 67 75 | 6d 65 6e 74 73 20 53 54 |ith argu|ments ST|
|000032b0| 41 52 54 2c 20 45 4e 44 | 2c 20 46 49 4c 45 4e 41 |ART, END|, FILENA|
|000032c0| 4d 45 2c 20 41 50 50 45 | 4e 44 2c 20 56 49 53 49 |ME, APPE|ND, VISI|
|000032d0| 54 2c 20 61 6e 64 20 43 | 4f 44 49 4e 47 2d 53 59 |T, and C|ODING-SY|
|000032e0| 53 54 45 4d 2c 0a 74 68 | 65 20 73 61 6d 65 20 61 |STEM,.th|e same a|
|000032f0| 73 20 74 68 65 20 63 6f | 72 72 65 73 70 6f 6e 64 |s the co|rrespond|
|00003300| 69 6e 67 20 61 72 67 75 | 6d 65 6e 74 73 20 69 6e |ing argu|ments in|
|00003310| 20 74 68 65 20 63 61 6c | 6c 20 74 6f 0a 60 77 72 | the cal|l to.`wr|
|00003320| 69 74 65 2d 72 65 67 69 | 6f 6e 27 2e 0a 0a 54 68 |ite-regi|on'...Th|
|00003330| 65 20 72 65 74 75 72 6e | 20 76 61 6c 75 65 20 6f |e return| value o|
|00003340| 66 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |f the fu|nctions |
|00003350| 73 68 6f 75 6c 64 20 62 | 65 20 65 69 74 68 65 72 |should b|e either|
|00003360| 0a 0a 2d 2d 20 6e 69 6c | 0a 2d 2d 20 41 20 63 6f |..-- nil|.-- A co|
|00003370| 64 69 6e 67 20 73 79 73 | 74 65 6d 20 6f 72 20 61 |ding sys|tem or a|
|00003380| 20 73 79 6d 62 6f 6c 20 | 64 65 6e 6f 74 69 6e 67 | symbol |denoting|
|00003390| 20 69 74 2c 20 69 6e 64 | 69 63 61 74 69 6e 67 20 | it, ind|icating |
|000033a0| 74 68 65 20 63 6f 64 69 | 6e 67 20 73 79 73 74 65 |the codi|ng syste|
|000033b0| 6d 0a 20 20 20 74 6f 20 | 62 65 20 75 73 65 64 20 |m. to |be used |
|000033c0| 66 6f 72 20 72 65 61 64 | 69 6e 67 20 74 68 65 20 |for read|ing the |
|000033d0| 66 69 6c 65 0a 2d 2d 20 | 41 20 6c 69 73 74 20 6f |file.-- |A list o|
|000033e0| 66 20 74 77 6f 20 65 6c | 65 6d 65 6e 74 73 20 28 |f two el|ements (|
|000033f0| 61 62 73 6f 6c 75 74 65 | 20 70 61 74 68 6e 61 6d |absolute| pathnam|
|00003400| 65 20 61 6e 64 20 6c 65 | 6e 67 74 68 20 6f 66 20 |e and le|ngth of |
|00003410| 64 61 74 61 20 77 72 69 | 74 74 65 6e 29 2c 0a 20 |data wri|tten),. |
|00003420| 20 20 77 68 69 63 68 20 | 69 73 20 75 73 65 64 20 | which |is used |
|00003430| 61 73 20 74 68 65 20 72 | 65 74 75 72 6e 20 76 61 |as the r|eturn va|
|00003440| 6c 75 65 20 74 6f 20 60 | 77 72 69 74 65 2d 72 65 |lue to `|write-re|
|00003450| 67 69 6f 6e 27 2e 20 20 | 49 6e 20 74 68 69 73 0a |gion'. |In this.|
|00003460| 20 20 20 63 61 73 65 2c | 20 60 77 72 69 74 65 2d | case,| `write-|
|00003470| 72 65 67 69 6f 6e 27 20 | 61 73 73 75 6d 65 73 20 |region' |assumes |
|00003480| 74 68 61 74 20 74 68 65 | 20 66 75 6e 63 74 69 6f |that the| functio|
|00003490| 6e 20 68 61 73 20 77 72 | 69 74 74 65 6e 0a 20 20 |n has wr|itten. |
|000034a0| 20 74 68 65 20 66 69 6c | 65 20 66 6f 72 20 69 74 | the fil|e for it|
|000034b0| 73 65 6c 66 20 61 6e 64 | 20 73 75 70 70 72 65 73 |self and| suppres|
|000034c0| 73 65 73 20 66 75 72 74 | 68 65 72 20 77 72 69 74 |ses furt|her writ|
|000034d0| 69 6e 67 2e 0a 0a 49 66 | 20 61 6e 79 20 66 75 6e |ing...If| any fun|
|000034e0| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 73 20 6e 6f |ction re|turns no|
|000034f0| 6e 2d 6e 69 6c 2c 20 74 | 68 65 20 72 65 6d 61 69 |n-nil, t|he remai|
|00003500| 6e 69 6e 67 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |ning fun|ctions a|
|00003510| 72 65 20 6e 6f 74 20 63 | 61 6c 6c 65 64 2e 1f 0a |re not c|alled...|
|00003520| 28 64 65 66 76 61 72 20 | 77 72 69 74 65 2d 72 65 |(defvar |write-re|
|00003530| 67 69 6f 6e 2d 70 72 65 | 2d 68 6f 6f 6b 20 6e 69 |gion-pre|-hook ni|
|00003540| 6c 20 28 23 24 20 2e 20 | 31 32 38 31 35 29 29 0a |l (#$ . |12815)).|
|00003550| 23 40 32 34 39 20 41 20 | 68 6f 6f 6b 20 63 61 6c |#@249 A |hook cal|
|00003560| 6c 65 64 20 62 79 20 60 | 77 72 69 74 65 2d 72 65 |led by `|write-re|
|00003570| 67 69 6f 6e 27 20 61 66 | 74 65 72 20 61 20 66 69 |gion' af|ter a fi|
|00003580| 6c 65 20 68 61 73 20 62 | 65 65 6e 20 77 72 69 74 |le has b|een writ|
|00003590| 74 65 6e 20 6f 75 74 2e | 0a 0a 54 68 65 20 66 75 |ten out.|..The fu|
|000035a0| 6e 63 74 69 6f 6e 73 20 | 6f 6e 20 74 68 69 73 20 |nctions |on this |
|000035b0| 68 6f 6f 6b 20 61 72 65 | 20 63 61 6c 6c 65 64 20 |hook are| called |
|000035c0| 77 69 74 68 20 61 72 67 | 75 6d 65 6e 74 73 20 53 |with arg|uments S|
|000035d0| 54 41 52 54 2c 20 45 4e | 44 2c 0a 46 49 4c 45 4e |TART, EN|D,.FILEN|
|000035e0| 41 4d 45 2c 20 41 50 50 | 45 4e 44 2c 20 56 49 53 |AME, APP|END, VIS|
|000035f0| 49 54 2c 20 61 6e 64 20 | 43 4f 44 49 4e 47 2d 53 |IT, and |CODING-S|
|00003600| 59 53 54 45 4d 2c 20 74 | 68 65 20 73 61 6d 65 20 |YSTEM, t|he same |
|00003610| 61 73 20 74 68 65 0a 63 | 6f 72 72 65 73 70 6f 6e |as the.c|orrespon|
|00003620| 64 69 6e 67 20 61 72 67 | 75 6d 65 6e 74 73 20 69 |ding arg|uments i|
|00003630| 6e 20 74 68 65 20 63 61 | 6c 6c 20 74 6f 20 60 77 |n the ca|ll to `w|
|00003640| 72 69 74 65 2d 72 65 67 | 69 6f 6e 27 2e 1f 0a 28 |rite-reg|ion'...(|
|00003650| 64 65 66 76 61 72 20 77 | 72 69 74 65 2d 72 65 67 |defvar w|rite-reg|
|00003660| 69 6f 6e 2d 70 6f 73 74 | 2d 68 6f 6f 6b 20 6e 69 |ion-post|-hook ni|
|00003670| 6c 20 28 23 24 20 2e 20 | 31 33 36 35 34 29 29 0a |l (#$ . |13654)).|
|00003680| 23 40 31 33 35 39 20 57 | 72 69 74 65 20 63 75 72 |#@1359 W|rite cur|
|00003690| 72 65 6e 74 20 72 65 67 | 69 6f 6e 20 69 6e 74 6f |rent reg|ion into|
|000036a0| 20 73 70 65 63 69 66 69 | 65 64 20 66 69 6c 65 2e | specifi|ed file.|
|000036b0| 0a 42 79 20 64 65 66 61 | 75 6c 74 20 74 68 65 20 |.By defa|ult the |
|000036c0| 66 69 6c 65 27 73 20 65 | 78 69 73 74 69 6e 67 20 |file's e|xisting |
|000036d0| 63 6f 6e 74 65 6e 74 73 | 20 61 72 65 20 72 65 70 |contents| are rep|
|000036e0| 6c 61 63 65 64 20 62 79 | 20 74 68 65 20 73 70 65 |laced by| the spe|
|000036f0| 63 69 66 69 65 64 20 72 | 65 67 69 6f 6e 2e 0a 57 |cified r|egion..W|
|00003700| 68 65 6e 20 63 61 6c 6c | 65 64 20 66 72 6f 6d 20 |hen call|ed from |
|00003710| 61 20 70 72 6f 67 72 61 | 6d 2c 20 74 61 6b 65 73 |a progra|m, takes|
|00003720| 20 74 68 72 65 65 20 61 | 72 67 75 6d 65 6e 74 73 | three a|rguments|
|00003730| 3a 0a 53 54 41 52 54 2c | 20 45 4e 44 20 61 6e 64 |:.START,| END and|
|00003740| 20 46 49 4c 45 4e 41 4d | 45 2e 20 20 53 54 41 52 | FILENAM|E. STAR|
|00003750| 54 20 61 6e 64 20 45 4e | 44 20 61 72 65 20 62 75 |T and EN|D are bu|
|00003760| 66 66 65 72 20 70 6f 73 | 69 74 69 6f 6e 73 2e 0a |ffer pos|itions..|
|00003770| 4f 70 74 69 6f 6e 61 6c | 20 66 6f 75 72 74 68 20 |Optional| fourth |
|00003780| 61 72 67 75 6d 65 6e 74 | 20 41 50 50 45 4e 44 20 |argument| APPEND |
|00003790| 69 66 20 6e 6f 6e 2d 6e | 69 6c 20 6d 65 61 6e 73 |if non-n|il means|
|000037a0| 0a 20 20 61 70 70 65 6e | 64 20 74 6f 20 65 78 69 |. appen|d to exi|
|000037b0| 73 74 69 6e 67 20 66 69 | 6c 65 20 63 6f 6e 74 65 |sting fi|le conte|
|000037c0| 6e 74 73 20 28 69 66 20 | 61 6e 79 29 2e 0a 4f 70 |nts (if |any)..Op|
|000037d0| 74 69 6f 6e 61 6c 20 66 | 69 66 74 68 20 61 72 67 |tional f|ifth arg|
|000037e0| 75 6d 65 6e 74 20 56 49 | 53 49 54 20 69 66 20 74 |ument VI|SIT if t|
|000037f0| 20 6d 65 61 6e 73 0a 20 | 20 73 65 74 20 6c 61 73 | means. | set las|
|00003800| 74 2d 73 61 76 65 2d 66 | 69 6c 65 2d 6d 6f 64 74 |t-save-f|ile-modt|
|00003810| 69 6d 65 20 6f 66 20 62 | 75 66 66 65 72 20 74 6f |ime of b|uffer to|
|00003820| 20 74 68 69 73 20 66 69 | 6c 65 27 73 20 6d 6f 64 | this fi|le's mod|
|00003830| 74 69 6d 65 0a 20 20 61 | 6e 64 20 6d 61 72 6b 20 |time. a|nd mark |
|00003840| 62 75 66 66 65 72 20 6e | 6f 74 20 6d 6f 64 69 66 |buffer n|ot modif|
|00003850| 69 65 64 2e 0a 49 66 20 | 56 49 53 49 54 20 69 73 |ied..If |VISIT is|
|00003860| 20 61 20 73 74 72 69 6e | 67 2c 20 69 74 20 69 73 | a strin|g, it is|
|00003870| 20 61 20 73 65 63 6f 6e | 64 20 66 69 6c 65 20 6e | a secon|d file n|
|00003880| 61 6d 65 3b 0a 20 20 74 | 68 65 20 6f 75 74 70 75 |ame;. t|he outpu|
|00003890| 74 20 67 6f 65 73 20 74 | 6f 20 46 49 4c 45 4e 41 |t goes t|o FILENA|
|000038a0| 4d 45 2c 20 62 75 74 20 | 74 68 65 20 62 75 66 66 |ME, but |the buff|
|000038b0| 65 72 20 69 73 20 6d 61 | 72 6b 65 64 20 61 73 20 |er is ma|rked as |
|000038c0| 76 69 73 69 74 69 6e 67 | 20 56 49 53 49 54 2e 0a |visiting| VISIT..|
|000038d0| 20 20 56 49 53 49 54 20 | 69 73 20 61 6c 73 6f 20 | VISIT |is also |
|000038e0| 74 68 65 20 66 69 6c 65 | 20 6e 61 6d 65 20 74 6f |the file| name to|
|000038f0| 20 6c 6f 63 6b 20 61 6e | 64 20 75 6e 6c 6f 63 6b | lock an|d unlock|
|00003900| 20 66 6f 72 20 63 6c 61 | 73 68 20 64 65 74 65 63 | for cla|sh detec|
|00003910| 74 69 6f 6e 2e 0a 49 66 | 20 56 49 53 49 54 20 69 |tion..If| VISIT i|
|00003920| 73 20 6e 65 69 74 68 65 | 72 20 74 20 6e 6f 72 20 |s neithe|r t nor |
|00003930| 6e 69 6c 20 6e 6f 72 20 | 61 20 73 74 72 69 6e 67 |nil nor |a string|
|00003940| 2c 0a 20 20 74 68 61 74 | 20 6d 65 61 6e 73 20 64 |,. that| means d|
|00003950| 6f 20 6e 6f 74 20 70 72 | 69 6e 74 20 74 68 65 20 |o not pr|int the |
|00003960| 22 57 72 6f 74 65 20 66 | 69 6c 65 22 20 6d 65 73 |"Wrote f|ile" mes|
|00003970| 73 61 67 65 2e 0a 54 68 | 65 20 6f 70 74 69 6f 6e |sage..Th|e option|
|00003980| 61 6c 20 73 69 78 74 68 | 20 61 72 67 20 4c 4f 43 |al sixth| arg LOC|
|00003990| 4b 4e 41 4d 45 2c 20 69 | 66 20 6e 6f 6e 2d 6e 69 |KNAME, i|f non-ni|
|000039a0| 6c 2c 20 73 70 65 63 69 | 66 69 65 73 20 74 68 65 |l, speci|fies the|
|000039b0| 20 6e 61 6d 65 20 74 6f | 0a 20 20 75 73 65 20 66 | name to|. use f|
|000039c0| 6f 72 20 6c 6f 63 6b 69 | 6e 67 20 61 6e 64 20 75 |or locki|ng and u|
|000039d0| 6e 6c 6f 63 6b 69 6e 67 | 2c 20 6f 76 65 72 72 69 |nlocking|, overri|
|000039e0| 64 69 6e 67 20 46 49 4c | 45 4e 41 4d 45 20 61 6e |ding FIL|ENAME an|
|000039f0| 64 20 56 49 53 49 54 2e | 0a 4b 6c 75 64 67 79 20 |d VISIT.|.Kludgy |
|00003a00| 66 65 61 74 75 72 65 3a | 20 69 66 20 53 54 41 52 |feature:| if STAR|
|00003a10| 54 20 69 73 20 61 20 73 | 74 72 69 6e 67 2c 20 74 |T is a s|tring, t|
|00003a20| 68 65 6e 20 74 68 61 74 | 20 73 74 72 69 6e 67 20 |hen that| string |
|00003a30| 69 73 20 77 72 69 74 74 | 65 6e 0a 74 6f 20 74 68 |is writt|en.to th|
|00003a40| 65 20 66 69 6c 65 2c 20 | 69 6e 73 74 65 61 64 20 |e file, |instead |
|00003a50| 6f 66 20 61 6e 79 20 62 | 75 66 66 65 72 20 63 6f |of any b|uffer co|
|00003a60| 6e 74 65 6e 74 73 2c 20 | 61 6e 64 20 45 4e 44 20 |ntents, |and END |
|00003a70| 69 73 20 69 67 6e 6f 72 | 65 64 2e 0a 4f 70 74 69 |is ignor|ed..Opti|
|00003a80| 6f 6e 61 6c 20 73 65 76 | 65 6e 74 68 20 61 72 67 |onal sev|enth arg|
|00003a90| 75 6d 65 6e 74 20 43 4f | 44 49 4e 47 2d 53 59 53 |ument CO|DING-SYS|
|00003aa0| 54 45 4d 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |TEM spec|ifies th|
|00003ab0| 65 20 63 6f 64 69 6e 67 | 20 73 79 73 74 65 6d 0a |e coding| system.|
|00003ac0| 20 20 75 73 65 64 20 74 | 6f 20 65 6e 63 6f 64 65 | used t|o encode|
|00003ad0| 20 74 68 65 20 74 65 78 | 74 20 77 68 65 6e 20 69 | the tex|t when i|
|00003ae0| 74 20 69 73 20 77 72 69 | 74 74 65 6e 20 6f 75 74 |t is wri|tten out|
|00003af0| 2c 20 61 6e 64 20 64 65 | 66 61 75 6c 74 73 20 74 |, and de|faults t|
|00003b00| 6f 0a 20 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |o. the |value of|
|00003b10| 20 60 62 75 66 66 65 72 | 2d 66 69 6c 65 2d 63 6f | `buffer|-file-co|
|00003b20| 64 69 6e 67 2d 73 79 73 | 74 65 6d 27 20 69 6e 20 |ding-sys|tem' in |
|00003b30| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |the curr|ent buff|
|00003b40| 65 72 2e 0a 20 20 49 6e | 74 65 72 61 63 74 69 76 |er.. In|teractiv|
|00003b50| 65 6c 79 2c 20 77 69 74 | 68 20 61 20 70 72 65 66 |ely, wit|h a pref|
|00003b60| 69 78 20 61 72 67 2c 20 | 79 6f 75 20 77 69 6c 6c |ix arg, |you will|
|00003b70| 20 62 65 20 70 72 6f 6d | 70 74 65 64 20 66 6f 72 | be prom|pted for|
|00003b80| 20 74 68 65 0a 20 20 63 | 6f 64 69 6e 67 20 73 79 | the. c|oding sy|
|00003b90| 73 74 65 6d 2e 0a 53 65 | 65 20 61 6c 73 6f 20 60 |stem..Se|e also `|
|00003ba0| 77 72 69 74 65 2d 72 65 | 67 69 6f 6e 2d 70 72 65 |write-re|gion-pre|
|00003bb0| 2d 68 6f 6f 6b 27 20 61 | 6e 64 20 60 77 72 69 74 |-hook' a|nd `writ|
|00003bc0| 65 2d 72 65 67 69 6f 6e | 2d 70 6f 73 74 2d 68 6f |e-region|-post-ho|
|00003bd0| 6f 6b 27 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ok'...(d|efalias |
|00003be0| 27 77 72 69 74 65 2d 72 | 65 67 69 6f 6e 20 23 5b |'write-r|egion #[|
|00003bf0| 28 73 74 61 72 74 20 65 | 6e 64 20 66 69 6c 65 6e |(start e|nd filen|
|00003c00| 61 6d 65 20 26 6f 70 74 | 69 6f 6e 61 6c 20 61 70 |ame &opt|ional ap|
|00003c10| 70 65 6e 64 20 76 69 73 | 69 74 20 6c 6f 63 6b 6e |pend vis|it lockn|
|00003c20| 61 6d 65 20 63 6f 64 69 | 6e 67 2d 73 79 73 74 65 |ame codi|ng-syste|
|00003c30| 6d 29 20 22 08 ae 9a c1 | c2 0b 0c 0d 0e 06 0e 07 |m) "....|........|
|00003c40| 0e 08 26 07 ae 8b 0e 09 | ae 87 0e 5c 6e ae 83 cb |..&.....|...\n...|
|00003c50| 0d 21 89 16 09 3a ab 83 | 0e 09 87 cc 0e 09 cd 5c |.!...:..|.......\|
|00003c60| 22 89 1e 0e ab bc 70 cf | d0 21 d1 20 1e 12 1e 13 |".....p.|.!. ....|
|00003c70| 1e 14 d5 8e 8a 0e 13 71 | 88 d6 20 88 d7 0e 14 0b |.......q|.. .....|
|00003c80| 0c 23 88 0e 0e 65 64 5c | 22 88 d8 65 64 0d 0e 06 |.#...ed\|"..ed...|
|00003c90| 0e 07 d9 61 3f ad 82 0e | 07 0e 08 0e 09 26 07 88 |...a?...|.....&..|
|00003ca0| 2d aa 8f d8 0b 0c 0d 0e | 06 0e 07 0e 08 0e 09 26 |-.......|.......&|
|00003cb0| 07 88 29 da db 0b 0c 0d | 0e 06 0e 07 0e 08 0e 09 |..).....|........|
|00003cc0| 26 08 87 22 20 5b 63 6f | 64 69 6e 67 2d 73 79 73 |&.." [co|ding-sys|
|00003cd0| 74 65 6d 2d 66 6f 72 2d | 77 72 69 74 65 20 72 75 |tem-for-|write ru|
|00003ce0| 6e 2d 73 70 65 63 69 61 | 6c 2d 68 6f 6f 6b 2d 77 |n-specia|l-hook-w|
|00003cf0| 69 74 68 2d 61 72 67 73 | 20 77 72 69 74 65 2d 72 |ith-args| write-r|
|00003d00| 65 67 69 6f 6e 2d 70 72 | 65 2d 68 6f 6f 6b 20 73 |egion-pr|e-hook s|
|00003d10| 74 61 72 74 20 65 6e 64 | 20 66 69 6c 65 6e 61 6d |tart end| filenam|
|00003d20| 65 20 61 70 70 65 6e 64 | 20 76 69 73 69 74 20 6c |e append| visit l|
|00003d30| 6f 63 6b 6e 61 6d 65 20 | 63 6f 64 69 6e 67 2d 73 |ockname |coding-s|
|00003d40| 79 73 74 65 6d 20 62 75 | 66 66 65 72 2d 66 69 6c |ystem bu|ffer-fil|
|00003d50| 65 2d 63 6f 64 69 6e 67 | 2d 73 79 73 74 65 6d 20 |e-coding|-system |
|00003d60| 66 69 6e 64 2d 66 69 6c | 65 2d 63 6f 64 69 6e 67 |find-fil|e-coding|
|00003d70| 2d 73 79 73 74 65 6d 2d | 66 6f 72 2d 77 72 69 74 |-system-|for-writ|
|00003d80| 65 2d 66 72 6f 6d 2d 66 | 69 6c 65 6e 61 6d 65 20 |e-from-f|ilename |
|00003d90| 63 6f 64 69 6e 67 2d 73 | 79 73 74 65 6d 2d 70 72 |coding-s|ystem-pr|
|00003da0| 6f 70 65 72 74 79 20 70 | 72 65 2d 77 72 69 74 65 |operty p|re-write|
|00003db0| 2d 63 6f 6e 76 65 72 73 | 69 6f 6e 20 66 75 6e 63 |-convers|ion func|
|00003dc0| 20 67 65 6e 65 72 61 74 | 65 2d 6e 65 77 2d 62 75 | generat|e-new-bu|
|00003dd0| 66 66 65 72 20 22 20 2a | 74 65 6d 70 2d 77 72 69 |ffer " *|temp-wri|
|00003de0| 74 65 2d 62 75 66 66 65 | 72 2a 22 20 62 75 66 66 |te-buffe|r*" buff|
|00003df0| 65 72 2d 6d 6f 64 69 66 | 69 65 64 2d 70 20 6d 6f |er-modif|ied-p mo|
|00003e00| 64 69 66 20 74 65 6d 70 | 62 75 66 20 63 75 72 62 |dif temp|buf curb|
|00003e10| 75 66 20 28 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |uf ((byt|e-code "|
|00003e20| c0 09 21 88 5c 6e ac 83 | 0b ac 8e c4 20 88 c5 c6 |..!.\n..|.... ...|
|00003e30| 21 88 c7 20 ab 83 c8 20 | 88 c6 87 22 20 5b 6b 69 |!.. ... |..." [ki|
|00003e40| 6c 6c 2d 62 75 66 66 65 | 72 20 74 65 6d 70 62 75 |ll-buffe|r tempbu|
|00003e50| 66 20 76 69 73 69 74 20 | 6d 6f 64 69 66 20 73 65 |f visit |modif se|
|00003e60| 74 2d 62 75 66 66 65 72 | 2d 61 75 74 6f 2d 73 61 |t-buffer|-auto-sa|
|00003e70| 76 65 64 20 73 65 74 2d | 62 75 66 66 65 72 2d 6d |ved set-|buffer-m|
|00003e80| 6f 64 69 66 69 65 64 2d | 70 20 6e 69 6c 20 62 75 |odified-|p nil bu|
|00003e90| 66 66 65 72 2d 66 69 6c | 65 2d 6e 61 6d 65 20 73 |ffer-fil|e-name s|
|00003ea0| 65 74 2d 76 69 73 69 74 | 65 64 2d 66 69 6c 65 2d |et-visit|ed-file-|
|00003eb0| 6d 6f 64 74 69 6d 65 5d | 20 32 29 29 20 65 72 61 |modtime]| 2)) era|
|00003ec0| 73 65 2d 62 75 66 66 65 | 72 20 69 6e 73 65 72 74 |se-buffe|r insert|
|00003ed0| 2d 62 75 66 66 65 72 2d | 73 75 62 73 74 72 69 6e |-buffer-|substrin|
|00003ee0| 67 20 77 72 69 74 65 2d | 72 65 67 69 6f 6e 2d 69 |g write-|region-i|
|00003ef0| 6e 74 65 72 6e 61 6c 20 | 74 20 72 75 6e 2d 68 6f |nternal |t run-ho|
|00003f00| 6f 6b 2d 77 69 74 68 2d | 61 72 67 73 20 77 72 69 |ok-with-|args wri|
|00003f10| 74 65 2d 72 65 67 69 6f | 6e 2d 70 6f 73 74 2d 68 |te-regio|n-post-h|
|00003f20| 6f 6f 6b 5d 20 31 30 20 | 28 23 24 20 2e 20 31 33 |ook] 10 |(#$ . 13|
|00003f30| 39 35 39 29 20 22 72 5c | 6e 46 57 72 69 74 65 20 |959) "r\|nFWrite |
|00003f40| 72 65 67 69 6f 6e 20 74 | 6f 20 66 69 6c 65 3a 20 |region t|o file: |
|00003f50| 5c 6e 69 5c 6e 69 5c 6e | 69 5c 6e 5a 43 6f 64 69 |\ni\ni\n|i\nZCodi|
|00003f60| 6e 67 2d 73 79 73 74 65 | 6d 3a 20 22 5d 29 0a |ng-syste|m: "]). |
+--------+-------------------------+-------------------------+--------+--------+